View Single Post
Old 07-27-2020, 10:16 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,633
Hi jjacobus,

I think it's the Find command that might have a replacement in PowerShell.

Sounds like you need to use Select-String instead:
The Select-String cmdlet searches for text and text patterns in input strings and files. You can use Select-String similar to grep in UNIX or findstr.exe in Windows.
What are your results with:
SFXCL /List sftp://user@host/target_folder 2>&1 | Select-String -Pattern ": -"

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote