newex 250 B

12345678
  1. #!/bin/sh
  2. if [ -e ex${1}.pp ]; then
  3. mv ex${1}.pp ex${1}.pp.orig
  4. fi
  5. sed -e s/Example/Example$1/ -e s/\\\*\\\*\\\*/$2/ <template.pp >ex${1}.pp
  6. echo "ex${1}.pp contains an example of the $2 function." >>README
  7. joe ex${1}.pp
  8. ppc386 ex${1}.pp && ex${1}