Log in Go to the main page Page History Go to the file list Go to the site toolbox

Move Files From Multiple Directories

From NetworkStuff


Tux 64x64.png

To move files of a specific type from multiple directories to somewhere else use the mv command in conjunction with the find command using this command syntax;

find starting-directory -iname "search-expression" -exec mv {} destination-directory \;

Vm-power-on-medium.png Usage Examples

find /var/tmp -iname "*.log" -exec mv {} /logs \;

Icemon-medium.png Related Articles

Information on other Linux commands Tux-small.png

Information on F5 BigIP commands F5-logo-small.png

Information on Cisco commands Cisco-logo-small.png

Information on Vyatta commands Vyatta-logo-small.png

Information on Extreme commands Extreme-logo-small.png

Information on Zebra commands

Information on Secure Platform commands

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)


Personal tools
This page was last modified on 8 October 2008, at 17:50. - Disclaimers - About Network Stuff
Powered by MediaWiki