Created
September 20, 2015 14:12
-
-
Save ywindish/2d4ea86058c1511be482 to your computer and use it in GitHub Desktop.
index.html?hoge というファイル名を hoge に一括置換するPerlワンライナー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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