![]() |
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 |
| select a record from one file matching from second file using awk | synmag | Shell Programming and Scripting | 7 | 06-12-2008 02:37 AM |
| select a portion of a file into a CSV | anju | Shell Programming and Scripting | 8 | 02-28-2008 01:50 AM |
| Select last block from a file | misenkiser | Shell Programming and Scripting | 9 | 10-11-2006 09:32 AM |
| select distinct row from a file | merry susana | UNIX for Dummies Questions & Answers | 7 | 05-03-2005 06:54 AM |
| select datas from an input file | dde | Shell Programming and Scripting | 1 | 05-21-2002 11:02 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
select last field from a file
hi everybody
i would to select the last field of a file here as you can see i select the field number 8 y=`cat sortie2 | grep "^[1-9999]"| grep "starting"| awk '{ print $8}'` but line can containt more or less field in never know, i just know is the last one so i wondering to know if is something like y=`cat sortie2 | grep "^[1-9999]"| grep "starting"| awk '{ print $lastfield}'` or a other solution thank a lot |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|