2
Say that I had a list of entries in a text file:
- Apple/bcd
- Pear/abc
- banana/def
- orange/cde
and I wanted to sort these entries in the console by what comes after the "/" so they were:
- Pear/abc
- Apple/bcd
- orange/cde
- banana/def
How do I use the sort function to sort this way without having columns there?
And by only using the sort function, no piping other commands?
I can only sort by the word before the "/".