Ignore lines in Shell Script | Unix Linux Forums | Shell Programming and Scripting

Ignore lines in Shell Script | Unix Linux Forums | Shell Programming and Scripting

瀏覽:1190
日期:2026-04-20
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 ......看更多