Topic "Unknown Command 'find' or 'grep'"

Author Message
Mejs6

Guest


Hello,
I'm trying to find a files containing specific text in filename and i get 'Unknown Command' for 'find' or 'grep' command.
I have connected to server and everything seems to be ok. 'Get' command working properly.

Is there anyone who have a clue whats going on?

Text script:
open ftp://user:password@name/
cd WEBPORTAL_PRODUCTION
cd 2015_04_01
grep -irn "ZLS" *
find / -type f -name "ZLS*"

Many thanks,
Artur
test.zip (432 Bytes) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
WinSCP does not support grep or find commands.

See this guide for a solution:
https://winscp.net/eng/docs/library_example_recursive_search_text
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License