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.
Using AWK
Name: thoppz Date: November 19, 2004 at 15:26:37 Pacific OS: hp-ux 11.0 CPU/Ram: 1G
Comment:
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 variables? eg of a line: adas 343434 adas@adas.org Informationsystems
n=`wc -l < get_dwsdid.txt` i=1
while [ "$i" -le "$n" ] do line=`cat get_dwsdid.txt | head -$i | tail -1`
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 variables? eg of a line: adas 343434 adas@adas.org I...
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_Startup_DetectAndInitializeMemoryOrganization>: 440000...
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've done it using bc but it involves breaking down ...