Created
April 1, 2020 21:50
-
-
Save skurscheid/5e0c6feaa332d98cc190f2bc27c312fc to your computer and use it in GitHub Desktop.
use sed to change file/dir names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in $(find . -type d -name 'SE'); do new=$(echo $i | sed s/SE/se/); mv $i $new; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment