Linux

Linux tools you NEED TO KNOW — sort



Join the stream!
Join the community:

#shorts #twitch #typecraft

[ad_2]

source

Related Articles

20 Comments

  1. One step further, but I use this every single day: use selection mode in vim, select a group of names, then type :sort. You're actually sending a selection to the terminal for this tool to sort and getting it sent back into vim, all in one easy command. 🤓

  2. I just realized that I am an old fuck on linux. I didn't even know that people don't know about sort, or uniq, or sed/awk and so on.

    Cool that you found something new 🙂 I loved this feeling

  3. Awesome stuff!

    I use powershell (pwsh) and can use Sort-Object to achieve this same goal. But since powershell is an object oriented shell it is far more powerful than this sorting tool because I can sort on any objects properties.

    pwsh is cross platform and I run it on all my systems including arch.

  4. sort is a good friend. Just one extra sample: If you want to know which directory is largest in size? Easy: "du -k | sort -nr | more" – "disk usage in kilobytes, sort numeric reverse, and page with more".

  5. Gotta be honest, I would have cat the contents to see what I'm working with, then hit up and piped to sort, verified it was what I wanted, then up again and redirect to a file. 😆

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button