[Bugs] [Bug 1201294] tools/glusterfind: Output format flexibility
bugzilla at redhat.com
bugzilla at redhat.com
Mon Apr 27 04:33:48 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1201294
--- Comment #2 from Aravinda VK <avishwan at redhat.com> ---
Above mentioned patch is Abandoned. Below patch standardizes the output format.
It is easy to postprocess from this format and convert it to required format.
http://review.gluster.org/#/c/10320/
Example to convert it to required format.(First argument is filename generated
by glusterfind --full
#!/usr/bin/python
import sys
import urllib
filename = sys.argv[1]
with open(filename) as f:
for line in f:
line = urllib.unquote_plus(line)
print "%s %s" % (len(line), line)
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=dtLnKWTilw&a=cc_unsubscribe
More information about the Bugs
mailing list