Re: awk like usage in python

2012-11-09 Thread Tim Roberts
Rudra Banerjee wrote: > >Friends, >I am in process learning python. >I basically use shell scripts for text formatting and trying my hand on >python. >where I am fighting is awk's functionality in python. >Say, one of my real tiny code looks like: >#!/bin/bash >TMP=store >for i in $1/MnBi_EOS_* >

awk like usage in python

2012-11-09 Thread Rudra Banerjee
Friends, I am in process learning python. I basically use shell scripts for text formatting and trying my hand on python. where I am fighting is awk's functionality in python. Say, one of my real tiny code looks like: #!/bin/bash TMP=store for i in $1/MnBi_EOS_* do # echo $i grep -A 15 "T(est)"