Skip to content

Instantly share code, notes, and snippets.

@VladRez
Created April 27, 2019 21:26
Show Gist options
  • Select an option

  • Save VladRez/3e16c3f29e0201e5344ee7b15c4d4465 to your computer and use it in GitHub Desktop.

Select an option

Save VladRez/3e16c3f29e0201e5344ee7b15c4d4465 to your computer and use it in GitHub Desktop.
#!/bin/bash
for DIRNAME in $(find ./ -type d)
do
mv $DIRNAME $(echo $DIRNAME | sed -E 's/FIND/REPLACE/')
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment