skip to main
|
skip to sidebar
Tips and Tricks on programming
C, C++, Unix, Linux, Perl, PHP, MySql, Postgres and Oracle.
Jun 12, 2009
Sort file by column
SYNTAX :
SORT -t 'DELIMITER' -k`COLUMN NO` `IN FILENAME` > `OUT FILENAME`
E.g :
sort -t',' -k3 input.txt > output.txt
Newer Post
Older Post
Home
Labels
Linux
(22)
Perl
(6)
Unix
(22)
Vi Editor
(4)
The D@rk Kn!ght
View my complete profile