plan9fox/rc/bin/florenate

12 lines
208 B
Plaintext
Raw Normal View History

2014-02-21 21:00:34 +00:00
#!/bin/rc
words='shit|fuck|damn|bullshit'
caps=`{echo $words | tr a-z A-Z}
{
if(~ $1 -n){
shift 1
grep -h -i $words $*
}
if not
cat $*
} | sed 's/'^$words^'/john floren/g; s/'^$caps^'/JOHN FLOREN/g'