Quantcast
Channel: Bulk renaming of camelcase files to include spaces - Unix & Linux Stack Exchange
Browsing all 4 articles
Browse latest View live

Answer by Ole Tange for Bulk renaming of camelcase files to include spaces

If you prefer using GNU Parallel the solution is: find . -name "*[a-z][A-Z]*" -type f | parallel mv -v {} '{= s:([a-z])([A-Z])(?!.*/):$1 $2:g =}'

View Article



Answer by Gilles 'SO- stop being evil' for Bulk renaming of camelcase files...

Your sed command is taking input from the pipe. It's competing with xargs, so each of the two commands will get part of the data written by find (each byte goes to only one reader), and it's...

View Article

Answer by janos for Bulk renaming of camelcase files to include spaces

The problem is that the $(...) sub-shell in your command is evaluated at the time you run the command, and not evaluated by xargs for each file. You could use find's -exec instead to evaluate commands...

View Article

Bulk renaming of camelcase files to include spaces

I'm attempting a batch rename of camelcase-named files to include spaces between adjacent upper and lower case leters. I'm using Mac OS so the utils I'm using are the BSD-variant. For example: 250 -...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images