openbsd-ports/net/nmap/files/prepman.sh
giovanni 4c8a46b081 Update to nmap-5.00
diff made by Pawlowski Marcin Piotr with tweaks by me and others
"you have my okay" landry@ on a similar diff
full changelog available at http://nmap.org/changelog.html
2009-10-22 10:00:57 +00:00

12 lines
215 B
Bash

#!/bin/sh
cp $1 $1.old
cat $1.old \
| sed 's:\\FC::g' \
| sed 's:\\F\[\]::g' \
| sed 's:\.\\\":\ \\\":g' \
| sed 's:\\m\[blue\]::g' \
| sed 's:\\m\[\]::g' \
| sed 's:\.\.\\\":\\\":g' \
| sed '/\.toupper.*/d' \
> $1