Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Plain shell version of textorama, contributed by @djanowski
#!/bin/sh
hi=$(expr $(tput lines) - 1)
cp $1 $1.ts
ed -s $1.ts <<-EOS
1i
.pl ${hi}v
.
g/^---\$/s//.bp\\
.sp 2\\
.ce
wq
EOS
nroff $1.ts | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment