General TC > Programming & Scripting - Unofficial
[Solved]: how to sort provides.db?
CNK:
Thanks Rich for the Awk tips. I try not to deal with too many languages because I don't have the memory for it, so if I care about performance (for something like this I wouldn't, personally) then I'll switch straight from shell scripting to C. Indeed I spent 90% of my time messing about with Sed doing the script from before because I'd forgotten a little too much of the syntax for the insertion command with that.
As it is, between Shell/Bash, C, and PHP, I find myself back at PHP 101 after a few months not touching any such code and I'm only really saved by the fact that it's so much like C (until it isn't). Awk is way too much of a niche for me to bother with (EDIT: even though it's like C as well).
@GNUser: I never knew of info.lst (info.lst.gz is found in the tcz directory on the mirrors, I see). Yep that saves lots of Sed witchcraft which had me confused earlier.
Rich:
Hi CNK
--- Quote from: CNK on March 23, 2023, 06:26:11 PM --- ... I try not to deal with too many languages because I don't have the memory for it, ...
--- End quote ---
Anytime I need to use sed or awk I wind up using Google for help getting the syntax right.
And if I'm having trouble with a shell script, I'll often peruse roberts scripts for ideas.
Navigation
[0] Message Index
[*] Previous page
Go to full version