Summary: hi all i m just stuffed in a problem if somebody can help me out i hav /etc/shadow file with enteries like bin:*:9797:0::::: daemon:*:9797:0::::: adm...
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. ...
Summary: hi i m iterating /etc/shadow file now i want to pick the second field which is a wild card "*" or encrypted password i m using a simple for loop #/bi...
Summary: Hello, I have a script to start 2 servers and keep a log of when they are down/restarted. The problem is in writing the log. It only writes once. ...
Summary: Hi, I am trying, in a awk to exlude strings that have identical characters following themselves more than 3 times, using a regular expression. I mean:...
Summary: OK, this will come closer to what you need. Lines are sorted by # fields on the line (most to least). Each line that is NOT a subset line is writt...
Summary: The first parameter is $1 and not $0 ($0 is the script name). The substitution $db is not done in the awk script : solution 1) db_found = ($4 == "'$db...
Summary: We have the following printf statement in our AWK program. All the arguments printed are considered as strins even if they are numbers. We have found ...
Summary: Hi Folks, In sed and/or awk, how would I formulate an if/else logic to skip a command if a specific text already exist in a file? I am getting multip...
Summary: Sorry James for the confusion again; I have this code in an awk script. I find it easier to work with complex awk in a script rather than the comma...
Summary: hello !! my awk script is something like this awk -F, 'BEGIN { getline holdline=$0 holdkey=$1$3$4 echo $holdkey k=1} function flushhold() { if (k>1) p...
Summary: Working on a ksh script. Trying to run through a set of files, and return a set of files, which are unique subsets by column. Code ... __files=`ls $_...
Summary: Hi, I am using korn script to launch an ADV+ program (a legacy language) based on certain conditions. The full script is given below. ===============...
Summary: Thank you so much. I actually got that one solved by making my software guy give me a file with a delimiter of "^" instead of ",". I changed the ...
Summary: Hi! I'm trying to use my shell script variables in my awk-line. Is not working! month3 is my variable and i'm aware that I can't use the $-prefix in a...
Summary: Does your awk script work if the filename is called directly without the loop? I don't know what to tell you. This little stub proves that a loop su...
Summary: Frank, We are dealing with half a million lines here. On your solution, the while loop will open and read through the input file just once, but your ...
Summary: A file processing command such as awk will let you do this without coding a while-loop: awk '{tot=tot+$1} END {print tot}' File1 or to have more contr...
Summary: I have a text data file that has spaces between fields and looks something like:- tom mazda keith ford mary ford I'm trying to write a shell script th...
Summary: I have used an in line awk command and it works. the same awk used in a script generate an error awk:0602-500 Quitting the source line is 1. the conte...
Summary: I am using a ksh script to parse/analyze some text files - files that have records that are over multiple lines. I have used sed and awk in the past; ...
Summary: I'm afraid my problem needs a bit more tweaking. That's because it needs to accomodate multiple occurances of entities of the same name. If you can ...
Summary: 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 ...
Summary: NAME=`echo $fic | awk -F"." '{print $1 $2 $3}' awk -F"." uses . as field seperator. But if cut is doing all that you want, what;s the big point in usi...
Summary: Hi Please get back to me if anyone knows the limitations ( such as maximum number of lines, or max functions or etc except the one given in the AWK an...