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. 
2
  • 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
    Commented Feb 10, 2016 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. Commented Feb 10, 2016 at 10:05

1 Answer 1

2

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

Try the commands:

mget *.tgz
mdel *.tgz
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .