「Linux」ワイルドカード(* ?)を利用するメモ

サンプルコード1(*)
$ ls
test.txt test1 test2 test3 index.php error.log
$ rm test*
$ ls
index.php error.log

 

サンプルコード2(?)
$ ls
test01 test02 test03 test04 test11 test12 test13 test14
$ rm test?4
$ ls
test01 test02 test03 test11 test12 test13

Linux

Posted by arkgame