1
General Software Discussion / Re: batch scripting
« on: May 20, 2024, 05:26 PM »i was doing a lot of grepping and it was causing a toll on my hands typing all the extra characters.
[...]
now i'm wondering if i can make it so i just run it once, and i can just type the grep search words over and over again ?
[...]
without having to type g each time.
[...]
its been so long i cant remember what this stuff is even called in batch to search how to script it.-compn (May 19, 2024, 09:34 PM)
There are still a few batch file resources on the web, e.g.
Don't overlook that even the Windows CMD prompt has line recall and editing. When you've issued a command, and it's been executed, press Up Arrow to recall it, edit the line if necessary and press Enter to issue the modified command. Take Command (payware) and its plain text console mode version TCC/LE (freeware) are far better. You get many more features than Microsoft ever dreamt of. JP Soft seem to have replaced TCC/LE with TCC-RT : Free TCC Runtime for Batch Files, which I haven't tried. Also, you should probably look at PowerShell, which also I haven't tried.