Skip to content

Instantly share code, notes, and snippets.

@ishideo
Last active April 9, 2018 07:53
Show Gist options
  • Save ishideo/c54c9fb52a53137e8560220729da0935 to your computer and use it in GitHub Desktop.
Save ishideo/c54c9fb52a53137e8560220729da0935 to your computer and use it in GitHub Desktop.
find ./csv -name "*.csv" -print | sed -e 's/\(.*\)\(log_\)\([0-9]\{8\}_\)\(.*\)$/"\1\2\3\4" "\1\2\4"/' | xargs -n 2 mv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment