Logo 
Search:

Unix / Linux / Ubuntu Article

Submit Article
Comments on Sort file abc.txt and save this sorted file in xyz.txt

Sort file abc.txt and save this sorted file in xyz.txt


Kashmir Alsaidi
Kashmir Alsaidi from United StatesMay 09
Write a shell script application that will
a.Takes (one argument) - a directory name from the user.
b.Print an error / usage message if the number of arguments is more or less than one.
c.Print another message if the argument is not a directory.
d.For the given directory, print the five biggest files and the five files that were most recently modified. save the output to a file called Output
e.Sort the files in the directory by file size and save the file names to two files called Large files , Small Files


Please enter your Comment
  • Comment should be atleast 15 Characters.
  • Please put code inside [Code] your code [/Code].