Tips on Writing Shell Scripts

  1. Use "stepwise refinement", which means to work on your program in steps. Make sure each part is well tested before moving on to the next step.
  2. Us command-line editing.
  3. You can also execute a command while you are in vi with !.