Quantcast
Channel: Find and move with exclude - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 5

Answer by Renjith for Find and move with exclude

$
0
0
find . ! -name "deposit.xml" -name "*.xml" -exec mv {} ./temp \;

find has -exec option using which we can execute commands with the result file as operand and use '! -name' option to exclude file.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>