bash - Using sort -M to sort by month -
i have file months.txt next text:
jan, mar, dec, feb, jun, apr in bash write next line of code:
cat months.txt | sort -m i assumed output text file, sorted month. output not sorted. using sort incorrectly?
sort sorts lines of text, , you've given one.
if file looked this:
jan mar dec feb jun apr ... you'd result expect.
incidentally, command useless utilize of cat: command
sort -m months.txt does same thing.
bash sorting unix cat utilities
No comments:
Post a Comment