Script to remove the COLOPHON section from the man pages provided as

command-line arguments.  This is useful to remove the COLOPHON sections
from all of the man pages in two different release trees in order to do a
"diff -ruN" to see the "real" differences between the trees.
This commit is contained in:
Michael Kerrisk 2008-01-13 08:32:15 +00:00
parent a0d39abb92
commit bdb507e4ca
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/bin/sh
#
# remove_COLOPHON.sh
#
# Remove the COLOPHON section from the man pages provided as
# command-line arguments. (This is useful to remove the COLOPHON
# sections from all of the man pages in two different release trees
# in order to do a "diff -ruN" to see the "real" differences between
# the trees.)
#
for f in "$@"; do
sed -i '/^\.SH COLOPHON/,$d' "$f"
done