Re: [OT] bash/awk question

2000-09-13 Thread Oswald Buddenhagen
> I understand the correct way to do this is probably awk, or perl or sed or ... but i would use awk, too :-) > but not sure how to make it work in this case. For example, I > could put the code in a bash function, but then how do I > access the function from inside the awk command? you could onl

[OT] bash/awk question

2000-09-13 Thread Krzys Majewski
I just ran into this shell scripting problem again where I have some lines of text and would like to perform an action on each line. For example, I have a do...while loop (a few lines of /bin/sh), and I would like to have the body executed for each line of a given file / stream. I understand the