Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash flatten directory

find /dir1 -mindepth 2 -type f -exec mv -t /dir1 -i '{}' +
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #bash #flatten #directory
ADD COMMENT
Topic
Name
1+3 =