Can I parse files from command line using Textpad?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Can I parse files from command line using Textpad?
Would like to start Textpad from a command script and execute a macro on a textfile and then exit textpad. The user should not have to do anything else than to initiate the execution by starting the command script. Is this possible with Textpad?
Re: Can I parse files from command line using Textpad?
Hi,
) a script would be my suggestion.
If it can be done with a TextPad macro it can certainly done with small script.
So... what do you wnat to do?
Cheers
Stephan
Depending on what you try to accomplish, running (and writingjerra wrote:Would like to start Textpad from a command script and execute a macro on a textfile and then exit textpad. The user should not have to do anything else than to initiate the execution by starting the command script. Is this possible with Textpad?
![Wink :wink:](./images/smilies/icon_wink.gif)
If it can be done with a TextPad macro it can certainly done with small script.
So... what do you wnat to do?
Cheers
Stephan
"It's POLYMORPHIC!"
A former colleague
A former colleague
Re: Can I parse files from command line using Textpad?
Well I would want to do pretty advanced formatting in text files which demands regexp & macros. I was thinking if it was possible to use textpad more or less like a command line tool and not having to interact with Textpad's application window in any way.skaemper wrote: So... what do you wnat to do?
Sounds like you want a scripting tool rather than a text editor (which just happens to have some scripting capabilities).Well I would want to do pretty advanced formatting in text files which demands regexp & macros.
If you were on a Unix system you'd probably use sed or awk for this. There are Windows ports of Unix tools (e.g. Cygwin http://www.cygwin.com/) which supply such things.
Regards,
Lionel B
Yes youre right about that, I just wanted to check that it was not possible. I use Textpad as my default editor and considering the number of features I thought it might even be capable of scripting the way I wanted..lionelb wrote:Sounds like you want a scripting tool rather than a text editor (which just happens to have some scripting capabilities).
![Smile :)](./images/smilies/icon_smile.gif)
Thanks, I will try that one also, we need a good tool here at work and either of these tools seems to do the job.skaemper wrote:I'd recommend Ruby on pretty much every OS...
Btw we work with Windows and Tru64 & some Linux.
Don't know much about histor, errr, Cygwin but I think it's alive since the latest DLL is from "Nov 11 2004". See http://www.cygwin.com/jerra wrote:Regarding Ruby & Cyqwin. Are both these tools alive and kicking?
Ruby is certainly alive
![Arrow :arrow:](./images/smilies/icon_arrow.gif)
If you're on Windows you might like to try either http://rubyforge.org/projects/rubyinstaller/ or http://rubyinstaller.rubyforge.org/wiki/wiki.pl (they're to views of the same thing). That's the Ruby I use in my WinXP box, on Linux I build it myself.
There's a vivid news group and mailing-list (which are connected to each other by Ruby code BTW).There are excellent introductions to Ruyb on the 'net:
- http://poignantguide.net/ruby/ is a famous (at least in the Ruby community
) if somewhat 'different' introduction.
- http://www.rubycentral.com/book/ is another great introduction.
Stephan
"It's POLYMORPHIC!"
A former colleague
A former colleague