Textpad: Setting up tool/command
Posted: Thu May 31, 2001 5:37 pm
I have an awk script that I run through a bash shell in Cygwin on an NT box. I execute it as so: $>dedup.awk file
It will scan the file and remove duplicate lines and echo the unique lines to the shell. How do I set this up as a tool within Textpad? I understand how to use configure/preferences to click tools/add/program but need more instructions on the what to put in for the command and parameters. Am I supposed to put the awk.exe for the command or my awk dedup script. I want to be able to depup a file I have opened in Textpad and have the unique lines be captured to another file. The way I thought it should be setup was:
(Command) D:\Applications\Cygwin\bin\awk.exe
(Parameters) D:\Applications\Cygwin\usr\local\bin\dedup.awk -f $file
but this produced a blank file (the file has duplicate lines)
It will scan the file and remove duplicate lines and echo the unique lines to the shell. How do I set this up as a tool within Textpad? I understand how to use configure/preferences to click tools/add/program but need more instructions on the what to put in for the command and parameters. Am I supposed to put the awk.exe for the command or my awk dedup script. I want to be able to depup a file I have opened in Textpad and have the unique lines be captured to another file. The way I thought it should be setup was:
(Command) D:\Applications\Cygwin\bin\awk.exe
(Parameters) D:\Applications\Cygwin\usr\local\bin\dedup.awk -f $file
but this produced a blank file (the file has duplicate lines)