#!/bin/bash
#ignore_hash
echo -n "Enter you file name or full directory name:"
read ANS
INPUT_FILE=$ANS
if [ -s $INPUT_FILE ]; then
while read LINE
do
case $LINE in
\#*);;
*) echo $LINE
;;
esac
done <$INPUT_FILE
else
echo "`basename $0` : Sorry $INPUT_FILE does not exist or is empty"
exit 1
fi
2016-11-16
删除所有以#开头的行
评论
发表评论
姓 名: