1

I am accessing ftp through command line and trying to delete all the files matching particular pattern. But seems it does literal match than regex match.

Can somebody suggest anyway that we can do pattern match in ftp command line client?

ftp> get *.tgz
200 PORT command successful.
550 The filename, directory name, or volume label syntax is incorrect. 
  • What FTP client are you using, and what command are you trying that doesn't work? You say you're trying to delete, but you're doing get? – Jonno Feb 10 '16 at 10:03
  • Its command line client, after get I tried del, but again same error ftp> del *.tgz 550 The filename, directory name, or volume label syntax is incorrect. – Anjali Singhal Feb 10 '16 at 10:05
2

I believe you're simply using commands designed for single files, but using wildcards.

Try the commands:

mget *.tgz
mdel *.tgz

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.