abhishek misra wrote:

> I need to sort a text file based on one of the couluns
> any idea hot to do that

> eg file

> S | x205                    | Jasper                            |
> 8480        | elm3a113                 | i386   | Xeon
> S | x205                    | Jasper                            |
> 8480        | elm3a112                 | i386   | Xeon
> S | x206                    | Juniper                           |
> 8482        | elm3a116                 | i386   | Celeron S | x206m 
> | Jaguar                            | 8485         | elm3a92 (64
> bit)         | x86_64 | Smithfi S | x225                    | Opal  
> | 8647         | elm3a74                  | i386   | Xeon
> S | x226                    | Spruce (Oak)                      |
> 8648PBE     | elm3a75 (64 bit)         | x86_64 | Presc


Read the man page for 'sort'.  Looks like you might fine the -k option
useful.

for instance:  sort -k 30,50 infile > outfile

-- 
-jdr-




To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to