Mercurial > repos > bgruening > text_processing
diff sort_rows.xml @ 3:7068d1548234 draft
Uploaded
| author | bgruening |
|---|---|
| date | Sun, 06 Oct 2013 08:22:36 -0400 |
| parents | ec66f9d90ef0 |
| children | 56e80527c482 |
line wrap: on
line diff
--- a/sort_rows.xml Thu Sep 05 12:42:48 2013 -0400 +++ b/sort_rows.xml Sun Oct 06 08:22:36 2013 -0400 @@ -1,4 +1,4 @@ -<tool id="sort_rows" name="Sort a row" version="0.0.1"> +<tool id="tp_sort_rows" name="Sort a row" version="0.0.1"> <description>according to their columns</description> <command>python -c 'for line in ["\t".join(sorted(line.strip().split("\t"))) for line in open("$input").readlines() ]: print line' > $outfile</command> <inputs>
