From: Armaan Bhojwani Date: Mon, 5 Jul 2021 17:09:33 +0000 (-0400) Subject: inp: add script X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=0810c43ff13cb220ee3f82ad744e1925338abc0b inp: add script --- diff --git a/inp b/inp new file mode 100755 index 0000000..04b96cf --- /dev/null +++ b/inp @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +"$1" "$2" > "${2}.tmp" +mv "${2}.tmp" "$2" diff --git a/man/inp.1.scd b/man/inp.1.scd new file mode 100644 index 0000000..2f468fd --- /dev/null +++ b/man/inp.1.scd @@ -0,0 +1,17 @@ +fmt-music(1) + +# NAME +inp - run any command in-place. + +# SYNOPSIS +*inp* [command] [input file] + +# DESCRIPTION +Run any command that outputs to stdout in place. For example to run fold on +file you could run "inp 'fold -s -w 72' file.txt". It is important that the +command and all of its options are a single argument, wrapped in quotes if need +be. + +# COPYRIGHT +This is free and unencumbered software released into the public domain. For more +information, please refer to . \ No newline at end of file