![]() |
|
|
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 |
| extracting numbers from strings | gobi | Shell Programming and Scripting | 2 | 05-27-2008 12:44 AM |
| comparing strings in seperate files | orahi001 | UNIX for Dummies Questions & Answers | 2 | 03-27-2008 12:04 PM |
| Extracting the lines between 2 strings of a file | babloo | Shell Programming and Scripting | 2 | 02-14-2007 11:27 AM |
| Help with extracting strings from a file | cmsdelhi | Shell Programming and Scripting | 7 | 01-12-2007 09:49 AM |
| Extracting strings | hugow | UNIX for Dummies Questions & Answers | 1 | 06-24-2005 07:09 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Extracting strings surrounded by parentheses and seperate by commas
Excuse the terrible title.
I have a text file of 1..n lines, each one containing at least one string between parentheses. Within each string, there is one or more strings separated by commas. I need to extract each string, thus: input file: (THIS,THAT) (THE,OTHER) (THING) (OR,MAYBE) (THIS,THING) Would result in: THIS THAT THE OTHER THING OR MAYBE THIS THING I'm pulling some stuff over from an IBM mainframe to Unix and I need to do some work on the resulting strings. awk is it...I just suck at it. Kindest regards, Kris |
| Bookmarks |
| Tags |
| ask parse |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|