shithub: snippets

ref: 0cd57b4514cb22dc3304f523680a1679e6e0479b
dir: /clear/

View raw version
#!/bin/rc
# clears all the output from programs,
# leaving only the command prompts

grep `{echo -n '^'^$prompt(1)} </dev/text | \
	grep -v '^'^$prompt(1)^'(clear|"")' | \
	uniq >/tmp/clearing.$pid

cp /tmp/clearing.$pid /dev/text
rm -f /tmp/clearing.$pid