#keep the folder structure copy some kind fiels to the destination folder
cd /top/levle/to/copy
find . -name '*.txt' | cpio -pdm /path/to/destdir
# copy some kind fiels to the destination folder without keep the structure
find /path/to/directory -name "*.mp3" -exec cp {} /some/other/dir/ \;
find . -name "*.UD1" -exec cp {} ../IBRH10UD208/ \;
Alternative:
find /path/to/dir/ -name '*.mp3' | xargs cp -t /target/
recurisive tar the tar package to current folder.
find . -name "*.tar.gz" -exec tar zxvf {} ./ \;
recurisive rm the csh file of the IBRH10UD208
find ./IBRH10UD208/ -name "*.csh" -exec sudo rm {} \;
recurisive cp the csh file of current folder
find . -name "*.csh" -exec sudo cp {} ./IBRH10UD208 \;
阅读(1426) | 评论(0) | 转发(0) |