Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

こんなコマンド

dirname
逆 basename(渡されたパスからディレクトリ名のみ抽出)
basename $i .ext
拡張子を取り除く
$ basename migrate_passwd.pl .pl
migrate_passwd
tempfile
テンポラリとして使えるファイル名を生成。大抵 /tmp/fileXXXXX という名前