![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-20-2007 01:52 AM |
| Debian: doubt in "top" %CPU and "sar" output | jaduks | Debian | 0 | 09-12-2007 08:05 AM |
| Weird problem with output from "date '+3600*%H+60*%M+%S' " | m223464 | Shell Programming and Scripting | 5 | 02-16-2006 12:22 PM |
| Unix "at" / "Cron" Command New Problem...Need help | Mohanraj | UNIX for Dummies Questions & Answers | 3 | 01-26-2006 08:08 PM |
| Sorting "ls" output on more than 1 column | Nicol | UNIX for Dummies Questions & Answers | 1 | 09-20-2005 07:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Turn off field separation by using a field sep character that does not occur in any record. Try the : character, then everything is in field1
Code:
sort -t: -k 1.16,1.29 sample.txt > output.txt |
|
||||
|
the -k option requires m.n
m= field number n = character position You are missiing character positions. Use -k2.1,2.10 or something. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|