From: Armaan Bhojwani Date: Mon, 5 Jul 2021 17:11:01 +0000 (-0400) Subject: fmt: add script X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=f822ed4335bcb8352d7cb898c10d6752982ad05e fmt: add script --- diff --git a/fmt b/fmt new file mode 100755 index 0000000..71c95ac --- /dev/null +++ b/fmt @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +awk '/^$/ {print} /./ {printf("%s ", $0)} END {print ""} ' | fold -s $@ diff --git a/man/fmt.1.scd b/man/fmt.1.scd new file mode 100644 index 0000000..305839f --- /dev/null +++ b/man/fmt.1.scd @@ -0,0 +1,15 @@ +fmt-music(1) + +# NAME +fmt - a fake fmt implementaion + +# SYNOPSIS +*fmt* [file to format] + +# DESCRIPTION +A fake fmt implementation using fold and awk, for coreutils that don't come +with an fmt implementation. + +# COPYRIGHT +This is free and unencumbered software released into the public domain. For more +information, please refer to . \ No newline at end of file