]> git.armaanb.net Git - bin.git/blobdiff - fmt
fmt: add script
[bin.git] / fmt
diff --git a/fmt b/fmt
new file mode 100755 (executable)
index 0000000..71c95ac
--- /dev/null
+++ b/fmt
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+awk '/^$/ {print} /./ {printf("%s ", $0)} END {print ""} ' | fold -s $@