-
查找文件
-
查找/目录下 klz 用户的所有文件,并拷贝到/root/findfile 目录中
mkdir /root/findfile 创建目录/root/findfile -
查找文件/usr/share/dict/words 中包括字符串”atens”的行,且不能有空格,并按顺序复制到/root/lines.txt 中
cat /usr/share/dict/words | grep “atens” > /root/lines.txt
相关文章:
查找文件
查找/目录下 klz 用户的所有文件,并拷贝到/root/findfile 目录中
mkdir /root/findfile 创建目录/root/findfile
查找文件/usr/share/dict/words 中包括字符串”atens”的行,且不能有空格,并按顺序复制到/root/lines.txt 中
cat /usr/share/dict/words | grep “atens” > /root/lines.txt
相关文章: