I've an awk process that does a number of system queries to build up a line of data and write out to a file. The format of the awk process is:
awk ' { ... } ' >> work-file
Since it takes a long time to gather the data, I'd like to use a process indicator to show that work is progressing so that the user doesn't think the script is stuck.
In a "normal" shell script equivilent, I'd use an echo statement with a "\c" to suppress the new line character and allow me to build up a catipillar line of dots that grows with each pass. Ex: . then .. then ...
Is there a way to do this from within an awk process? I've tried using the system call with the echo command, but this doesn't work probably because it's a call outside of the immediate process.
Thank you.
Gawker
awk ' { ... } ' >> work-file
Since it takes a long time to gather the data, I'd like to use a process indicator to show that work is progressing so that the user doesn't think the script is stuck.
In a "normal" shell script equivilent, I'd use an echo statement with a "\c" to suppress the new line character and allow me to build up a catipillar line of dots that grows with each pass. Ex: . then .. then ...
Is there a way to do this from within an awk process? I've tried using the system call with the echo command, but this doesn't work probably because it's a call outside of the immediate process.
Thank you.
Gawker