Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Flatten a folder's structure via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Flatten a folder's structure via AppleScript
Authored by: PatrickS on May 12, '09 10:57:56AM
for i in *; do
    if [ -d "$i" ]; then
        mv "$i"/* "$i"/.??* ./
        rmdir "$i"

[ Reply to This | # ]