I have a few questions:
I have listed the number of lines in the files in /group/book/four/word, sorted by the number of lines they contain using
$ wc -l /group/book/four/word/*|sort -n
...and I got:
2 /group/book/four/word/wer.txt 2 /group/book/four/word/rti.txt 3 /group/book/four/word/cool.txt
This is what I wanted! Perfect.
But now I want to make the list generated contain ONLY the file names, e.g like this
wer.txt rti.txt cool.txt
How can I do that using the "od" command?
And how can I use "sed" to remove the numbers at the start of the line of the results I got above? How can I do the same but only for the first two lines?