 |
Ignore lines in Shell Script | Unix Linux Forums | Shell Programming and Scripting
Check if the first character is # and if so, ignore the line. Code: while read LINE do [ "${LINE:0:1}" = "#" ] && continue ... done This syntax should work in bash and ksh. Remove advertisements Sponsored Links #3 04-18-2012 ad23 Registered User ...
www.unix.com |
 |