ファイル名やパス名でアスタリスク(*)、疑問符(?)をワイルドカード文字として使用できるか否かを切り替えます。
glob
globを切り替えその前後で、複数ファイルの削除コマンドを実行します
ftp> ls [Enter] 200 PORT command successful 150 Opening ASCII mode data connection for file list sampletext01.txt sampletext02.txt 226 Transfer complete. ftp: 46 bytes received in 0.00Seconds 46000.00Kbytes/sec. ftp> glob [Enter] Globbing Off . ftp> status [Enter] Connected to ftpserver. Type: ascii; Verbose: On ; Bell: Off ; Prompting: On ; Globbing: Off Debugging: Off ; Hash mark printing: Off . ftp> mdelete sampletext* [Enter] mdelete sampletext*? y 550 sampletext*: No such file or directory ftp> glob [Enter] Globbing On . ftp> status [Enter] Connected to ftpserver. Type: ascii; Verbose: On ; Bell: Off ; Prompting: On ; Globbing: On Debugging: Off ; Hash mark printing: Off . ftp> mdelete sampletext* [Enter] 200 Type set to A mdelete sampletext01.txt? y 250 DELE command successful mdelete sampletext02.txt? y 250 DELE command successful ftp>