diff test-data/sort.py @ 0:a8aacccd79a3 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sequence_format_converter commit d6ef80f9db43eae4f58b33f58b5ef6f8209907db
author artbio
date Mon, 04 Sep 2017 07:13:28 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/sort.py	Mon Sep 04 07:13:28 2017 -0400
@@ -0,0 +1,8 @@
+import sys
+
+F = open(sys.argv[1], 'r')
+lines = F.readlines()
+lines = [line[:-1] for line in lines]
+for line in sorted(lines):
+    print(line)
+F.close()