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 and ksh
Name: xaiver Date: July 25, 2005 at 02:04:07 Pacific OS: HPUX CPU/Ram: UNIX
Comment:
Hi,
I have a ksh which uses seperated awk programs inside. Can i define a variable in the ksh and then using awk to refer to it? eg
under ksh i have abc=count+120
so in the awk part which is written as part of the ksh, can i use it ? eg array[1]=abc
Summary: Done in KSH, but it worked fine for me. The $startnumber and $readwidth variable basically control the whole thing, you can play with them to get different results, but ideally they should be the same...
Summary: I am trying to figure out the proper way to use the awk utility and the -t utility together to search for all "butter" within my /etc/passwd file. I want to print these files out. I started with this....