Yes that sort thing exactly - thank you Feherke. I'll sit down and try and learn awk properly when I have more time, it seems like it is significantly quicker than perl for these relatively simple tasks.
Thanks,
Jamie.
Hmmmm, in that case I may go with cut option. Just one question. The code you've given won't work as such. That's not your fault, I gave a slightly simplified version of the task for ease of explanation. The list of names in the name_file are not totally identical to the headers in the...
Thank you feherke - I'll have a play about with both options and see which best suits.
Yes sorry, that was the code for cut, I'd been comparing cut, awk and perl performing the same task and found that awk and cut took approximately the same time but perl was slower. I obviously mixed up my cut...
Hi there,
Firstly apologies, I am completely new to AWK but am a reasonable Perl programmer.
I have actually completed the following task using a perl script, but I feel that AWK *may* be faster so it would be good to know if what I want to do can be carried out in AWK as in all likelihood I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.