diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-17 18:13:52 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-17 18:13:52 +0200 |
| commit | f018806b598f752c021be814de4ad641082a0ab9 (patch) | |
| tree | 04ccfab7216849d732032d38f1b9ccd372fc96b1 /gfmt | |
| parent | 58f547462ec79d2cbdf713351c086a2354e9f34b (diff) | |
| download | scripts-f018806b598f752c021be814de4ad641082a0ab9.tar.gz scripts-f018806b598f752c021be814de4ad641082a0ab9.zip | |
Added gfmt
Diffstat (limited to 'gfmt')
| -rwxr-xr-x | gfmt | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -0,0 +1,9 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Format text from gemtext format to short lines with double \n | ||
| 4 | |||
| 5 | # TODO: remove double spacing from within ``` | ||
| 6 | |||
| 7 | sed 's/ //' | \ | ||
| 8 | sed 'a\\' | \ | ||
| 9 | fold -sw 80 | ||
