It may seem to be a rather tedious process to work this way, and
indeed there are a number of scripts where it's fine
to take a crack at writing the whole script in one pass and then
begin testing it. However, the one-step-at-a-time method is highly
recommended for beginners, because you isolate each command and get
to easily see what is working and what is not. When you try to do
several commands at once, you might find that when problems arise,
you end up recreating the recommended process in reverse; that is,
removing or commenting out commands one by one until you locate the
problem.
-- DD
| | |
34.6. Order of Commands in a Script | | 34.8. Delimiting a Regular Expression |