michaelsanford
Translator, Web Developer
I've got some commands that parse out my web logs into readable, catgorized columns suitable for other post-processing (excel, MySQL, whatever).
The only problem is that to rip apart my logs I'm entering a bunch of command sequentially into the terminal. Obviously this is stupid, but I don't know how to properly write a PERL ( ? ) or tcsh script, as I would an AppleScript or an old DOS BAT.
All I know is that the script has to take the example form
After that, I don't know how to actually run the script without using
Not to mention how to run the script from a Cocoa app, but I'm still trying to figure out how to make Cocoa apps interact with Darwin
Tips on running the script in the terminal?
There's got to be a better way than the second code example?
Thanks!
The only problem is that to rip apart my logs I'm entering a bunch of command sequentially into the terminal. Obviously this is stupid, but I don't know how to properly write a PERL ( ? ) or tcsh script, as I would an AppleScript or an old DOS BAT.
All I know is that the script has to take the example form
Code:
#!/usr/bin/sh
ls | awk '{print $1}'
Code:
tsch [script name]
Tips on running the script in the terminal?
There's got to be a better way than the second code example?
Thanks!