|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Iam working in centos linux operating system.
Consider the following file by name emp 1008 Vijay 40 1009 Rekha 34 1010 Shreyas 40 1011 Sanjay 40 sort command is not working. I gave sort emp The command is not working Can somebody send the options under centos linux |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
sort
Quote:
What is your sort constraints ? I assume that, you are going to sort by name (second column). Code:
sort -k 2 emp if you use just Code:
sort emp it will sort with first column by default. Cheers, Ranga
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New to Unix command line and have a question about the "sort" command | budfoxcat | UNIX for Dummies Questions & Answers | 1 | 11-28-2011 12:46 AM |
| Sort command using unix | koneru_18 | UNIX for Advanced & Expert Users | 1 | 10-24-2011 11:14 PM |
| UNIX sort command | numele | UNIX for Dummies Questions & Answers | 2 | 04-27-2010 05:27 PM |
| using Unix sort command | phil_heath | UNIX for Dummies Questions & Answers | 2 | 10-17-2009 04:00 PM |
| File size limitation of unix sort command. | cskumar | Shell Programming and Scripting | 7 | 10-07-2005 10:37 AM |
|
|