[IPython-User] 'awk' in ipython?

Peng Cui pengcui1989@gmail....
Sat Oct 13 07:32:15 CDT 2012

Hi, I'm confused about the usage of 'awk' in ipython.

For example: I want to create 3 files('chr1','chr2','chr3'). And I
input the following commands:
for eachitem in a:
    !awk '{print $1}'
'/home/ckivip/Epigenetics/Data/H1hesc/Dnamethy.bed' >

However, I only get files named
'16484eachitem','16486eachitem','16488eachitem'!! What do those mean?
And my question is how can I convert variables to shell from python in
this situation. it can't recognize
the variable '$$eachitem'. So how can I deal with it?

Peng Cui
Department of Bioinformatics & Biostatistics, Shanghai Jiao Tong University
800 Dongchuan Road,Shanghai 200240,China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20121013/9a2d097b/attachment.html 

More information about the IPython-User mailing list