![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What the command to find out the record length of a fixed length file? | tranq01 | UNIX for Dummies Questions & Answers | 9 | 12-04-2008 04:04 PM |
| Length of a Unix filepath max length | wilsontan | UNIX for Dummies Questions & Answers | 3 | 02-22-2006 10:19 AM |
| Sed working on lines of small length and not large length | thanuman | UNIX for Dummies Questions & Answers | 3 | 04-15-2005 07:12 AM |
| creating a fixed length output from a variable length input | r1500 | Shell Programming and Scripting | 2 | 12-03-2003 01:09 PM |
| Parsing data and retaining the full length of variable | app4dxh | Shell Programming and Scripting | 3 | 11-22-2002 12:04 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
length of data greater than 11
I need to get all the rows in a file, for which length of field at column 6 is greater than 11.
I tried awk '{ if ($#1 >11) print $1}' filename But Iam getting some errors I tried different combinations like awk '{ if (${#$1} >11) print $1}' filename awk '{ if (${#1} >11) print $1}' filename awk '{ if ($\{#1\} >11) print $1}' filename But nothing is working... iam on sun solaris... Can anyone help with what command, I can achieve this.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|