过滤文档test.txt中的特殊符号#,并将文档重定向至test.yyyymmdd.txt中:cat /test/test.txt |grep -v ^# > /test/test.yyyymmdd.txt