erinxocon / pyp

Automatically exported from code.google.com/p/pyp
0 stars 0 forks source link

Functionality for working with tab-separated files #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be useful to have a split/join variable 
<code>t</code>/<code>tab</code> serving as the equivalent of 
<code>p.split('\t')</code> or <code>'\t'.join(p)</code>.

Original issue reported on code.google.com by neatn...@gmail.com on 26 Feb 2012 at 7:16

GoogleCodeExporter commented 8 years ago
That's a good point. I'll add this in the next major revision. Luckily, "t" has 
not been taken yet for a shortcut!  In the meantime, you can save out macros 
for this functionality. 

Original comment by tobyro...@gmail.com on 12 Mar 2012 at 10:48

GoogleCodeExporter commented 8 years ago
please try this beta.  use "tab" or "t" for splitting and joining on tabs.

Original comment by tobyro...@gmail.com on 15 Mar 2012 at 11:23

Attachments:

GoogleCodeExporter commented 8 years ago
I've tested it with commands like

cat big.file | pyp --quick_output "t[0]+'\t'+t[1]+'\t\t'+t[2]"

and it works as expected. Thanks!

Original comment by neatn...@gmail.com on 17 Mar 2012 at 3:55

GoogleCodeExporter commented 8 years ago
pyp_beta should fix this:
http://code.google.com/p/pyp/downloads/detail?name=pyp_beta&can=2&q=#makechanges

Original comment by tobyro...@gmail.com on 16 May 2012 at 9:37