Combining graphical editors with command-line editors when writing shell scripts
To give you an impression of how we like to combine GUI tools with command-line editors, we've given an example workflow below. Don't worry about not understanding all steps yet; at the end of the book you should come back to this example and understand exactly what we're talking about.
When you're writing shell scripts, you normally go through a few phases:
- Gather requirements for the shell script
- Design the shell script
- Write the shell script
- Test and adjust the shell script
- (Optional) Submit the working shell scripts to your version control system
Phase 1 and 2 are often done without writing actual code. You think about the purpose of the script, how it could be implemented and what is gained by creating the script. These steps often involve research and looking for best-practices. When you feel like you have a good idea about why, what and how you're going to write your shell script, you move on to phase 3: writing...