shithub: snippets

ref: d3bd7f0977707fe012384b3dd6ce5e2a3048704c
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