Skip to content

Instantly share code, notes, and snippets.

@zinzinday
Created December 23, 2018 04:10
Show Gist options
  • Save zinzinday/5a3fec8d0a95e4306e83aa3d26674f5c to your computer and use it in GitHub Desktop.
Save zinzinday/5a3fec8d0a95e4306e83aa3d26674f5c to your computer and use it in GitHub Desktop.
find . -name "fgh*" -type f -print0 | xargs -0 -I {} sh -c 'mv "{}" "$(dirname "{}")/`echo $(basename "{}") | sed 's/^fgh/jkl/g'`"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment