Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » Homework HelpRSS Feeds

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

Posted By: Jacob Bouchard     Category: Unix / Linux / Ubuntu     Views: 5263

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

Code for Sort file abc.txt and save this sorted file in xyz.txt in Unix / Linux / Ubuntu

$ sort -d abc >xyz.txt
$ cat xyz.txt

*************
   Output
*************

c
d
df
dr
e
rt
sd
sxcdf
ygs
  
Share: 


Didn't find what you were looking for? Find more on Sort file abc.txt and save this sorted file in xyz.txt Or get search suggestion and latest updates.

Jacob Bouchard
Jacob Bouchard author of Sort file abc.txt and save this sorted file in xyz.txt is from Montreal, Canada.
 
View All Articles

 
Please enter your Comment

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

 
Kashmir Alsaidi from United States Comment on: May 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

View All Comments