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>.
Comment #1
Posted on Mar 12, 2012 by Grumpy LionThat'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.
Comment #2
Posted on Mar 15, 2012 by Grumpy Lionplease try this beta. use "tab" or "t" for splitting and joining on tabs.
- pyp_beta_2.11.1 90.11KB
Comment #3
Posted on Mar 17, 2012 by Grumpy LionI'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!
Comment #4
Posted on May 16, 2012 by Grumpy Lionpyp_beta should fix this: http://code.google.com/p/pyp/downloads/detail?name=pyp_beta&can=2&q=#makechanges
Status: Fixed
Labels:
Type-Defect
Priority-Medium