6
Find And Run Robot / alias help using ScanFs (to grep files from the FARR command line?)
« on: January 22, 2018, 11:37 AM »
I'm hoping to grep text files from the FARR command line, or at least open ScanFs with the arguments I type in to FARR.
Based on this 10-year old thread: https://www.donationcoder.com/forum/index.php?topic=13567.0
... I end up with the following alias in myaliases.alias (just changing the launch path).
<AliasText>grep</AliasText>
<Score>1000</Score>
<Results>
<Result>grep $$1 $$2 | C:\Users\user\AppData\Roaming\Saleen Software\Saleen ScanFs\ScanFs.exe /path=$$1 /contents="$$2">+>^grep (\S*) (.*)</Result>
</Results>
If I type "grep" into FARR it opens ScanFs, but has whatever I typed in to ScanFs the last time it ran. If I try to add arguments in FARR ("grep *.txt needle") I just get from FARR "Sorry, no results."
Any suggestions *greatly* appreciated!
Based on this 10-year old thread: https://www.donationcoder.com/forum/index.php?topic=13567.0
... I end up with the following alias in myaliases.alias (just changing the launch path).
<AliasText>grep</AliasText>
<Score>1000</Score>
<Results>
<Result>grep $$1 $$2 | C:\Users\user\AppData\Roaming\Saleen Software\Saleen ScanFs\ScanFs.exe /path=$$1 /contents="$$2">+>^grep (\S*) (.*)</Result>
</Results>
If I type "grep" into FARR it opens ScanFs, but has whatever I typed in to ScanFs the last time it ran. If I try to add arguments in FARR ("grep *.txt needle") I just get from FARR "Sorry, no results."
Any suggestions *greatly* appreciated!