arizonagroovejet |
05-14-2016 04:19 PM |
Quote:
Originally Posted by PleaseHelpMeUnderstand
(Post 5545551)
the file is called etclist. So far I tried ls -lSh and I also tried ls -lSh ~/etclist
|
When you post commands and such like, use CODE tags for readability. E.g.
Look for the # button when composing your post.
ls isn't going to show you the contents of a file. I didn't understand what you want to do correctly, I pretty much ignored "I want to sort the information a file" part of your post because it didn't make sense to me, I thought you were trying to sort a directory listing, rather than a directory listing that's in a file. I think the -k and -n options of sort are what you want. Maybe this
Code:
sort -k5 -n ~/etclist
It might help if you posted part of the file in question.
|