Quantcast
Channel: Bash: mv directory one at a time - Server Fault
Viewing all articles
Browse latest Browse all 6

Answer by Michael Hampton for Bash: mv directory one at a time

$
0
0

You want for.

An example (this will just show what will be done):

for item in *; do
    echo mv "$item" /destination/directory
done

When you're happy, remove echo to do it for real.


Viewing all articles
Browse latest Browse all 6

Trending Articles



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