![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| find command takes a lot of time ( can I skip directories) | knijjar | Shell Programming and Scripting | 3 | 08-12-2008 08:08 PM |
| Query regarding the functionality of OPTIONS (SKIP=1) | thayaparani | Shell Programming and Scripting | 1 | 01-21-2008 09:54 PM |
| skip reading certain lines in a file | paulsew | UNIX for Dummies Questions & Answers | 5 | 03-26-2007 03:07 AM |
| Skip new line | pmpx | Shell Programming and Scripting | 2 | 10-13-2005 12:43 AM |
| FreeBSD skip UserConfig... | Enoch Chan | BSD | 2 | 09-03-2003 05:48 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have a file contents like this....
item1 item2 #item3 item4 #item5 item6 .... I have a KSH script to read this file into an array. I have a for loop which will read each item... I want to be able to skip those item start with # sign as first character in a if condiction inside the for loop. How can I use substr, or parse or whatever way in ksh to detect the first character is a # sign. Thanks in advance. |