Module2 Session3 Final
Module2 Session3 Final
Linux
Extrac)ng informa)on from files
w Sort alphabe;cally (default op;on): sort <filename>
w Sort numerically: sort -n <filename>
w Sort on a specific column (n°4): sort –k 4 <filename>
w Sort based on a tab separator: sort -t $'\t’ <filename>
w ...
Let’s consider a file named “ghandi.txt”
$ cat ghandi.txt
The difference between what we do
and what we are capable of doing
would suffice to solve
most of the world's problems
Thanks
Shaun Aron & Sumir Panji