![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | 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. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Quote:
Code:
awk -F\; '{print $16}' input
cut -d\; -f16 <input
If you need last column 16, use: Code:
awk -F\; '{print $16}' input |tail -1
cut -d\; -f16 <input |tail -1
awk -F\; 'END {print $16}' input
Last edited by rdcwayx; 12-03-2009 at 01:51 AM.. |
|
|||
|
This is what I exactly wanted, Thanks RDC and ahmad for your useful timely reply.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File mgt: Do you know the command line command | linux_lou | Shell Programming and Scripting | 4 | 06-24-2009 06:08 AM |
| Command that creates file and also greps that file? | Sepia | UNIX for Dummies Questions & Answers | 2 | 06-18-2009 01:09 PM |
| cp && rm command, rm: <file> not removed. No such file or directory | Leion | Shell Programming and Scripting | 5 | 01-19-2009 11:46 PM |
| awk/sed Command : Parse parameter file / send the lines to the ksh export command | rajan_san | Shell Programming and Scripting | 4 | 11-06-2008 01:29 PM |
| End of file using more command | Enda Martin | UNIX for Dummies Questions & Answers | 3 | 06-18-2001 11:49 AM |