Here i have a file, with two columns with diffrent values, now i want to
use sort them with columns, and with number.
See the file how it looks like.
address@hidden ~]$ cat file
1 2
1 2
3 5
3 5
3 5
3 5
3 5
2 3
2 3
2 3
2 3
2 3
2 3
4 5
1 1
1 1
0 0
0 0
0 0
0 0
0 0
0 0
0 0
---
address@hidden ~]$ sort --version
sort (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and Paul Eggert.
-----
Now i use sort.
address@hidden ~]$ cat file|sort -nr +2
sort: open failed: +2: No such file or directory
*But when i use an old sort version, it works!
address@hidden cat file|sort_1 -nr +2
4 5
3 5
3 5
3 5
3 5
3 5
2 3
2 3
2 3
2 3
2 3
2 3
1 2
1 2
1 1
1 1
0 0
0 0
0 0
0 0
0 0
0 0
0 0
---
address@hidden ~]$ sort_1 --version
sort (coreutils) 4.5.3
Written by Mike Haertel and Paul Eggert.
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Best Regards
Fredrik Andreasson
--
Fredrik Andreasson Address: IT-stöd,Uppsala universitet
Phone: +46 18 4717745 Box 887