home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / nn.tar / nn-6.5.1 / SPLITNN1 < prev    next >
Text File  |  1995-04-29  |  338b  |  18 lines

  1. # split nn.1 in 4 parts
  2. cd man
  3.  
  4. if [ ! -f nn.1 ] ; then
  5.     echo "nn.1 missing: cannot split it!"
  6.     exit 1
  7. fi
  8. rm -f nn.1.[ABCD]
  9.  
  10. sed -n \
  11. -e '/BEGINPART A/,/ENDPART A/w nn.1.A' \
  12. -e '/BEGINPART B/,/ENDPART B/w nn.1.B' \
  13. -e '/BEGINPART C/,/ENDPART C/w nn.1.C' \
  14. -e '/BEGINPART D/,/ENDPART D/w nn.1.D' nn.1
  15.  
  16. # dont have to 'make' it
  17. touch nn.1
  18.