Una*_*rai 67 command-line files touch-command
我需要更改大约 5000 个文件的时间戳。
打字touch file1.txt
,touch file2.txt
将永远带我。
有没有办法做一些事情touch -R *
?
g_p*_*g_p 107
您可以使用find
命令来查找所有文件并touch
使用-exec
find . -type f -exec touch {} +
Run Code Online (Sandbox Code Playgroud)
如果您只想过滤文本文件的结果,您可以使用
find . -type f -name "*.txt" -exec touch {} +
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
93707 次 |
最近记录: |