![]() |
|
|
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 |
| extract field of characters after a specific pattern - using UNIX shell script | jansat | HP-UX | 2 | 05-28-2008 01:08 AM |
| How to extract field from variable more efective | pp56825 | Shell Programming and Scripting | 11 | 01-19-2008 10:34 AM |
| How to extract elements in a field using a number | ahjiefreak | Shell Programming and Scripting | 17 | 12-13-2007 04:13 AM |
| Extract Part of string from 3rd field $3 using AWK | stakuri | Shell Programming and Scripting | 4 | 10-10-2007 01:28 PM |
| Trying to extract a field from /etc/passwd file.. | xBuRnTx | UNIX for Dummies Questions & Answers | 2 | 10-05-2005 03:45 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
need to extract field of characters in a line
Hello,
Below is my input file's content ( in HP-UX platform ): ABCD120672-B21 1 ABCD142257-002 1 ABCD142257-003 1 ABCD142257-006 1 From the above, I just want to get the field of 13 characters that comes after 'ABCD' i.e '120672-B21'... . Could you please let me know the shell script that I have to use? Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|