Skip to content

Instantly share code, notes, and snippets.

@ywindish
Created September 20, 2015 14:12
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 ywindish/2d4ea86058c1511be482 to your computer and use it in GitHub Desktop.
Save ywindish/2d4ea86058c1511be482 to your computer and use it in GitHub Desktop.
index.html?hoge というファイル名を hoge に一括置換するPerlワンライナー
perl -e 'while(<index.html*>) { ($new = $_) =~ s/index\.html\?(.*)$/$1/; rename $_, $new }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment