Start this session by changing into the directory BiProblems. Then make a new directory, UnixScripts, and change into it. As we already saw in Problem 46, commands that work directly on the command line can usually be included in a bash script and then executed. The command we start off with is
Enter this on the command line. If we wanted to separate the two words by three blanks, we might try
but this has the same effect as the original command. Try using single quotes to get the desired effect.
When dealing with longer commands like the one for drawing the genes in M. genitalium (Problem 45), it is often more convenient to edit them in a separate file, which can then be executed by the bash. Such files are called â€œscriptsâ€. Copy the solution to Problem 45 into the file drawGenes.sh and run it
What happens if you try to execute drawGenes.sh directly by typing
Draw the genes of M. genitalium. Is the bias in their distribution between the strands visible?