[lfs-support] A bug in gawk?

alex lupu alupu01 at gmail.com
Fri Oct 11 22:07:27 PDT 2013


> Bruce wrote:
> See if awk 'BEGIN {FS="\\.so"}...  works for you.

Hi Bruce,

It DOES !!!
Thank you very much!

As an aside, (to explain) why _I_ prefer 'awk' to 'sed' _in this case:

for f in `cat tempx.txt`; do echo $f | sed -r 's/(.*)\.so.*/\1/'; done

vs.

 cat tempx.txt | awk 'BEGIN {FS="\\.so"} ; {print $1}'

A grateful,
-- Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20131012/de27d639/attachment.html>


More information about the lfs-support mailing list