But if I were to sort the contents of "file" as so
Code:
sort -dg /etc/file >> test[\code]
There would be no problem.
[b]My goal is to sort "file" only returning the lines containing the text which I am after.[/b]
So as an example I used the useless code [code]sort -dg "word2sort for" /etc/file >> test
As my method to sort for the text "word2sort for". I hope that clears up my intent some what better.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.