Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sftp rm wildcard help

Status
Not open for further replies.

rokay

Programmer
Jul 31, 2003
1
0
0
US
Hi,

We just installed ssh2. I am running the sftp command with a batch file and I need delete a few files that start with "myfile" as follows:

sftp -B mycommands myboxname

mycommands file:
rm myfile*
quit

sftp doesn't seem to recognize the wildcard.
The name of myfile* changes so I cannot hardcorde.

Do you have any recommendations?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top