Skip to content

Instantly share code, notes, and snippets.

@dfischer
Forked from staydecent/renamefiles.fish
Created October 15, 2019 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfischer/b7838a89cbd0551cb4cadd032b42affe to your computer and use it in GitHub Desktop.
Save dfischer/b7838a89cbd0551cb4cadd032b42affe to your computer and use it in GitHub Desktop.
File renaming pattern for Fish Shell with OSX sed
# 'Item*' it the pattern to look for
# sed "s/I/i/g" is the replacement pattern
for f in Item*; mv $f (echo {$f} | sed "s/I/i/g"); end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment