經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供