D
Donald 'Paddy' McCarthy
I think you will find that the examples could be re-written in pythonMatthew said:My friend sent me an email asking this:
I wasn't able to give him an afirmative answer because I've never used
python for things like this. I just spent the last while looking on
google and haven't found an answer yet. I was hoping some one out there
might have some thoughts ?
thanks much
-matthew
(or perl), but assuming you have created the one liners above and so
know your way around 'the basics' then you would be most productive in
leaving a space for find and bash and sed and awk and grep ... for
mainly smaller scripts Python is not good for one liners but tends to be
easy to maintain.
I don't believe that you should abandon AWK once you learn Python,
especially if you do Sys-Admin work. Python has a broad range of uses
but it is not better than AWK in all cases, as I think others have shown
in the thread by giving a much longer Python version of an example.
Cheers, Paddy.