摘要:
精确查找只包含“a”的行 grep -w "a" 1.txt 精确排除查找只包含“a”的行 grep -wv "a" 1.txt 阅读全文
posted @ 2020-04-26 19:33
豆浆D
阅读(1615)
评论(0)
推荐(0)
摘要:
最简单的方法 shopt -s extglob 打开extglob模式 rm -fr !(file1) 排除一个 rm -rf !(file1|file2|file3) 排除多个 shopt -u extglob 关闭extglob模式 阅读全文
posted @ 2020-04-26 19:30
豆浆D
阅读(1050)
评论(0)
推荐(0)