linuxgal, 1 month ago Reformat standard input to any width with #Python #DW #!/usr/bin/python3 import sys import textwrap w=int(sys.argv[1]) for line in sys.stdin: print(textwrap.fill(line,width=w))
Reformat standard input to any width with #Python #DW
#!/usr/bin/python3 import sys import textwrap w=int(sys.argv[1]) for line in sys.stdin: print(textwrap.fill(line,width=w))
apgarcia, 1 month ago @linuxgal fmt -w 70 gettysburg.txt
@linuxgal
fmt -w 70 gettysburg.txt
Add comment