Skip to content

Instantly share code, notes, and snippets.

@carrotsword
Last active November 2, 2017 05:23
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 carrotsword/4902b813a6244ddbc7dcc6bf64c737ed to your computer and use it in GitHub Desktop.
Save carrotsword/4902b813a6244ddbc7dcc6bf64c737ed to your computer and use it in GitHub Desktop.
sort で並ぶようにお願いします
ls | sed -e s/\.zip// | awk '{print $1 ".zip " $1 ".x"}' | sed -e s/autumn\.x/09_autumn.zip/ | sed -e s/winter\.x/12_winter.zip/ | sed -e s/summer\.x/08_summer.zip/ | sed -e s/spring\.x/04_spring.zip/ | xargs -n 2 mv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment