0

Hi
Any idea how to solve an old exercice?

The linux command ls -alR produce informations about files contained in the current directory and
its subdirectories. You can save its output by using redirections (in the file output in the following
example):

ls -alr > output
The exercice is to write a perl which take as input a file generated by the previous command and displays:

  1. The sorted list of all owners (without duplicates) according their name

  2. A sorted list of all filenames for which several files exists with the same filename (you should display the number of occurences too).

  3. A sorted list of files according their size.

  4. A sorted list of files according the last writing time .

2
Contributors
1
Reply
30
Views
4 Years
Discussion Span
Last Post by 2teez
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.