How to combine find and cp and rm of the Bash command line for Linux
Example:
1.find and cp
# find /home -name ‘*.conf’|xargs -I cp -r /home/conf/
2.find and rm
# find /home -name ‘test-file-*’ | xargs rm -rf
How to combine find and cp and rm of the Bash command line for Linux
No comments:
Post a Comment