![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to count the number of commented lines in a file | naan | High Level Programming | 3 | 08-07-2008 09:17 PM |
| How to count lines - ignoring blank lines and commented lines | kthatch | UNIX for Dummies Questions & Answers | 6 | 05-25-2007 02:21 AM |
| inittab always restarts a process which was commented out | uludwig04 | HP-UX | 2 | 06-08-2006 12:10 PM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Selecteing only non commented rows
Hi,
I have develop a script that will read a single line from file and do some operations.But now my problwm is that if in that file suppose 1 line is commented, then i have to ignore that line...Can anybody help me out to solve this issue? Details are:Script: HTML Code:
#!/bin/sh Parmdir=/opt/home/xyz cat $Parmdir/jobname.lst | while read line do some command done HTML Code:
ABCD EFGH #AFFF RRRRR ![]() Please help me. ![]() Thanks In Advance! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|