aboutsummaryrefslogtreecommitdiff
path: root/gfmt
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-05-17 18:13:52 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-05-17 18:13:52 +0200
commitf018806b598f752c021be814de4ad641082a0ab9 (patch)
tree04ccfab7216849d732032d38f1b9ccd372fc96b1 /gfmt
parent58f547462ec79d2cbdf713351c086a2354e9f34b (diff)
downloadscripts-f018806b598f752c021be814de4ad641082a0ab9.tar.gz
scripts-f018806b598f752c021be814de4ad641082a0ab9.zip
Added gfmt
Diffstat (limited to '')
-rwxr-xr-xgfmt9
1 files changed, 9 insertions, 0 deletions
diff --git a/gfmt b/gfmt
new file mode 100755
index 0000000..d38351f
--- /dev/null
+++ b/gfmt
@@ -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
7sed 's/ //' | \
8sed 'a\\' | \
9fold -sw 80

Generated with cgit - Back to sebastiano.tronto.net