|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | 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 !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Get Column Data
Hi
I have a file which contains customer data... Quote:
The lenght of the columns can vary depending on the name, address etc but it appears that the order number is the second from last column. Any help would be greatly appreciated. |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
In AWK you can refer to the next to last field using
$(NF-1) .
Regards, Alister |
| 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 |
| Replace column that matches specific pattern, with column data from another file | prashali | Shell Programming and Scripting | 7 | 05-15-2012 04:17 PM |
| Need to extract data from Column having variable length column | ns64110 | Shell Programming and Scripting | 6 | 01-30-2012 08:19 AM |
| row to column and position data in to fixed column width | baluchen | Shell Programming and Scripting | 4 | 03-15-2010 06:46 AM |
| Split Data in one column into 2 column in Excel using DOS or VBScript | dashing201 | Windows & DOS: Issues & Discussions | 3 | 03-12-2010 05:04 AM |
| Extract data based on match against one column data from a long list data | patrick87 | Shell Programming and Scripting | 12 | 11-17-2009 03:27 AM |
|
|