TRUNK:This trunk/brunch stuff is VERY confusing. Again: Fix for uniq (count). No more leading spaces

This commit is contained in:
Anton Nekrutenko
2006-12-20 01:53:04 +00:00
parent 37d815d298
commit b840959a1c
+2 -3
View File
@@ -1,6 +1,6 @@
# Filename: uniq.py
# Author: Ian N. Schenck
# Version: 9/06/2005
# Version: 19/12/2005
#
# This script accepts an input file, an output file, a column
# delimiter, and a list of columns. The script then grabs unique
@@ -122,8 +122,7 @@ def main():
intcolumns = intcolumns[1:]
commandline += str(intcolumns[0])
commandline += " " + inputfile + " | sort | uniq -c | tr \" \" \"\t\" > " + outputfile
commandline += " " + inputfile + " | sort | uniq -c | sed s/^\ *// | tr \" \" \"\t\" > " + outputfile
errorcode, stdout = commands.getstatusoutput(commandline)
return errorcode