Summary: I need help sorting som assembler code (instruction set profiling (static)), using awk. A piece of the code looks like this.... 44000040 <R_Do_Star...
Summary: I've a loop to read a file line by line. Now each line has 4 columns seperated by space. How do I get 4 diff column values using awk to 4 seperate va...
Summary: Hi there I'm new to performing calculations using awk or some such tool withi a UNIX shell script. I have a formula which I need to calculate. I'v...
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: I've a loop to read a file line by line. Now each line has 4 columns seperated by space. How do I get 4 diff column values using awk to 4 seperate va...
Summary: Can anyone point me in the right direction to compare two files and combine them using awk. Example. File1 Data 2442,Sep,16,2006,ACTIVE 2068,Aug,17,20...
Summary: Yes, you can use AWK instead of GREP, but it does not make any sense The threadstarter has a different question though, but what exactly is not clear ...
Summary: I would like to subtract a single value to a file using awk. It has been quite difficult to figure out how ? What I wanted to do is : I have a file th...
Summary: Hi, I am trying to write an awk program (not shell script) to find the day of the week given the date "mm/dd/yyyy" as argument.The program should make...
Summary: In the main body, each line that is not empty (has Number of Fields greater than zero), it accumulates into an array called "kount" the number of occu...
Summary: I need to compare two files and get the difference between the two files. F1 is the base file.I need to print out all the lines missing in F2, and the...
Summary: Using awk, and passing in a program with the -f option, taking a gigantic input file, and trying to generate a much smaller output file (party respons...
Summary: Hi All, I have two files file1: abc,def,ghi,5,jkl,mno pqr,stu,ghi,10,vwx,xyz cba,ust,ihg,4,cdu,oqw file2: ravi,def,kishore ramu,ust,krishna joseph,stu...
Summary: Need help with awk or sed script. I have multiple files with the following in first line NUMBER_COLUMNS=15 I want to increase the number by 1 so it sh...
Summary: If you were using awk to output a single value, it would be as simple as: nawk '{(locate & print one value)}' | read Expr1 But with multiple values ...
Summary: \/ is nothing but a backslash and a forward slash ie \ and / . forward slash / has a special meaning to the shell, thefore we need to destroy the spe...
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: Hi, PS1="`uname -n`>" export PS1 I wanted to write above 2 lines in .profile using a script. But when it writes to a file, uname -n command will b...
Summary: Thanks very much for the help cdac and James! I have a further question on a similar problem. If I have a table of schedules and the fields are: date ...
Summary: Hi all, I would like to know if there is a shortcut to do the following: Say I have a file that contains one line. The line contains 9 fields, delimi...
Summary: How do I change the delimiter of a log file from "Tab" to "|" and then make a copy of the original log file to a new file by using AWK? Thx ...