如何touch一个目录及其下所有嵌套子目录中的文件?

xiaoxiao2021-03-01  16

如何touch一个目录及其下所有嵌套子目录中的文件?

find . | xargs touch

或者

find ./ -type f |xargs touch find ./ -typed |xargs touch 就可以了。

-type c File is of type c: b block (buffered) special c character (unbuffered) special d directory p named pipe (FIFO) f regular file l symbolic link s socket D door (Solaris)

转载请注明原文地址: https://www.6miu.com/read-3850184.html

最新回复(0)