Saturday, 15 February 2014

linux - Command line sorting file content and redirecting output to the file -



linux - Command line sorting file content and redirecting output to the file -

the file 'numbers' contains list of numbers. write command place largest 1 of numbers file 'largest' (there should nil else in file). not utilize 'head' command in answer.

i trying sort numbers | tail > largest

you write this:

sort -n numbers | tail > largest

linux shell ubuntu command-line command

No comments:

Post a Comment