I have a script https://www.linux.org/threads/linux-org-user-created-helpful-shell-scripts.41234/post-249595
It outputs multiple lines, each line has some space-separated values. How to sort the output by 6th value? Treat it as a real number.
./kt.sh info | sort -n -k 6
sorts in some random...
The -o argument is useful because you can turn the program's output into a file for use later. The way i've found you can use this is like:
<some-input> | sort -o <new-file-name>
however, i wonder if there is a tried and tested way of using sort like this without the pipe?
Hey:)
As part of my studies I started learning about Kali Linux as my first ever Linux distro.
Lately we learned a bit about the QTerminal, pipes & sorting
We now have been given a list with ~10000 words
Out of these 10000 words there are 100 words that are similiar but have different numbers...