Skip to content
Browse files

switched back to gzip

  • Loading branch information...
1 parent 9ef47e1 commit 02e53201c859d7b930194fbdc79f28bd3c188636 @dacresni committed May 8, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 manzip.py
View
5 manzip.py
@@ -8,14 +8,13 @@ def names():
for page in os.listdir(mandir):
manname = page.split(".")[0]
#command = "man 2 %s| col"%(manname)
- command = "zcat %s"%("".join([mandir,page]))
+ command = "gzip -cd %s"%("".join([mandir,page]))
print command
- p = Popen(command, shell=True, stdout=PIPE,stderr=STDOUT )
+ p = Popen(command, shell=True, stdout=PIPE, stderr=STDOUT)
mantext= p.communicate()[0]
#filenam = "".join([manname, ".txt" ])
filenam = "manzip/%s"%(manname)
print filenam
-
phage = file(filenam, 'w' )
phage.write(mantext)
phage.close()

0 comments on commit 02e5320

Please sign in to comment.
Something went wrong with that request. Please try again.