comparison home/ross/galaxy/tools/tool_makers/toolfactory/test-data/pyrevpos.python @ 120:0c6c3e10a8f4 draft

Uploaded
author fubar
date Thu, 07 Jan 2021 09:22:51 +0000
parents e95d9fe5ab50
children
comparison
equal deleted inserted replaced
119:8ea1133b9d9a 120:0c6c3e10a8f4
1 # reverse order of text by row
2 import sys
3 inp = sys.argv[1]
4 outp = sys.argv[2]
5 i = open(inp,'r').readlines()
6 o = open(outp,'w')
7 for row in i:
8 rs = row.rstrip()
9 rs = list(rs)
10 rs.reverse()
11 o.write(''.join(rs))
12 o.close()
13