Linux删除指定的行
#!/bin/shFILENAME=file.txt # 可换为$1if [ ! -f file.txt ];then echo "$FILENAME no found" exit 1fiecho -n "INPUT SOME THING: "readif [ ! -z ”$REPLY“ ];then INFO=$(grep $REPLY FILENAME) if [ ! -z "$INFO" ] ; then sed -i -e "/$REPLY/d" ...