Skip to content

Instantly share code, notes, and snippets.

@skurscheid
Created April 1, 2020 21:50
Show Gist options
  • Save skurscheid/5e0c6feaa332d98cc190f2bc27c312fc to your computer and use it in GitHub Desktop.
Save skurscheid/5e0c6feaa332d98cc190f2bc27c312fc to your computer and use it in GitHub Desktop.
use sed to change file/dir names
#!/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