|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | 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 |
|
|||
|
Parsing a file in Shell Script
Hi,
I have a requirement. I have an application which can take a file as inputs. Now the file can contain any number of lines. The tool has to pick up the first uncommented line and begin processing it. For example the file could be like this: #MANI123|MANI1234 #MANI234|MANI247 SENDIL204|SENDIL505 INPUT4|INPUT5. Now the tool has to pick up only the third line as it is the first uncommented line i.e . SENDIL204|SENDIL505. How can I do this in a shell script Thanks in advance |
| Sponsored Links | ||
|
|
|
|||
|
i have not tried to rectify your post
i tried in my way |
| 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 |
| parsing a string in a shell script | asutoshch | Shell Programming and Scripting | 19 | 05-26-2008 10:18 PM |
| shell script parsing with sed | jjamd64 | UNIX for Dummies Questions & Answers | 5 | 12-11-2007 04:51 PM |
| Parsing a line in Shell Script | unishiva | Shell Programming and Scripting | 3 | 11-01-2007 04:30 PM |
| Help in parsing a CSV file with Shell script | mihirk | Shell Programming and Scripting | 10 | 06-24-2007 11:58 AM |
| Shell script for parsing 300mb log file.. | gurpreet470 | Shell Programming and Scripting | 3 | 02-09-2007 04:38 AM |