scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

commit f018806b598f752c021be814de4ad641082a0ab9
parent 58f547462ec79d2cbdf713351c086a2354e9f34b
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Tue, 17 May 2022 18:13:52 +0200

Added gfmt

Diffstat:
MMakefile | 1+
MTODO | 2++
Agfmt | 9+++++++++
3 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -16,6 +16,7 @@ SCRIPTS = addressgrep \ dmenu-websearch \ ffmpeg-screenrecord \ ffmpeg-facecam \ + gfmt \ mail-compose \ notify-status \ open-file \ diff --git a/TODO b/TODO @@ -1,3 +1,5 @@ +* gfmt: avoid double spacing within ``` + * sfeed-browser: optionally just write link to stdout (or to xsel -i) * Refactor: review all scripts and adapt to common style diff --git a/gfmt b/gfmt @@ -0,0 +1,9 @@ +#!/bin/sh + +# Format text from gemtext format to short lines with double \n + +# TODO: remove double spacing from within ``` + +sed 's///' | \ +sed 'a\\' | \ +fold -sw 80