Linux

Find a file and operate it

2019-06-11  本文已影响0人  JaedenKil
find . -type f -name '*file*' -exec echo {} +

// In current folder and its descendant, find all files which contains 'file' in its name, and echo the file names.
find . -type f -name '*file*' -exec cat {} +

// In current folder and its descendant, find all files which contains 'file' in its name, and cat them one by one.
上一篇下一篇

猜你喜欢

热点阅读