|
|
|
|
@ -64,7 +64,7 @@ with open(cmd.filename,'r') if cmd.filename else sys.stdin as handle:
|
|
|
|
|
if matched: |
|
|
|
|
# Strip newlines if requrired |
|
|
|
|
if cmd.oneline: |
|
|
|
|
print output.replace("\n",'') |
|
|
|
|
print output.replace("\n",'').replace("\r","").strip() |
|
|
|
|
else: |
|
|
|
|
print output |
|
|
|
|
buffering=False |
|
|
|
|
|