Skip to content

Instantly share code, notes, and snippets.

@keevee09
Forked from staydecent/renamefiles.fish
Created March 15, 2017 23:12
Show Gist options
  • Save keevee09/c7819575ff39cc1d18dfbac9c8bb0f37 to your computer and use it in GitHub Desktop.
Save keevee09/c7819575ff39cc1d18dfbac9c8bb0f37 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