Skip to content

Instantly share code, notes, and snippets.

@perpouh
Created July 26, 2019 02:07
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 perpouh/f598440c4486150b0a1ace11b9627ed7 to your computer and use it in GitHub Desktop.
Save perpouh/f598440c4486150b0a1ace11b9627ed7 to your computer and use it in GitHub Desktop.
カレントディレクトリのファイルの名称を一斉に変更する

/Application/MAMP/conf以下のphpn.n.n(nは任意の整数)フォルダを一斉に名称変更したときのコード。 この後自分が使いたいバージョンのフォルダだけを手動で戻してMAMP再起動した。

for file in php*; do
mv $file _$file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment