我有一封电子邮件我无法删除,所以跑了
grep -rnwil . -e 'HMG Capital'
找到它。grep 找到该文件,输出为:
./1563972300.M254363P6352.xxx.codes,S=5606,W=5728:2,
现在,当我尝试 rm 或 ls 文件时,它不存在。
ls -al ./1563972300.M254363P6352.xxx.codes,S=5606,W=5728:2,
ls: cannot access './1563972300.M254363P6352.xxx.codes,S=5606,W=5728:2,': No such file or directory
ls -al "1563972300.M254363P6352*"
ls: cannot access '1563972300.M254363P6352*': No such file or directory
我错过了什么?
感谢您的回答,这不是问题,但它帮助我找到了真正的问题。文件名不断变化,当我尝试 ls/rm 时,文件名已经改变。我通过管道传递了 grep 命令,在几次符文之后,执行速度足够快,可以在重命名之前执行这两个命令。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句