Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Awk in a script
Name: Carlos Picardal Date: March 2, 2004 at 09:23:35 Pacific OS: AIX 5.0 CPU/Ram: ??
Comment:
When running the script below I get nothing.. I am a newbie with this. Not sure If you can run awk in a script. Also Im having problems getting a variable from the command line to the script.
Summary: Hello, I want to give back the first 3 letters of my hostname to a variable in a shell script like this principle: N=awk'{printf substr(`uname -n`,1,3) };{exit}' but so it doesn't work. I have one err...
Summary: Hello, here is my issue - I am running a script with a while loop. I have an awk statement within the while loop that uses an incremented variable. the script does not like me to use a variable in t...
Summary: If you are calling sed every time through the loop, there is no way it is more efficient. If you are doing a global change to a file, sed is the utility of choice. Size of the file is not a factor. ...