You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: episodes/05-writing-scripts.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -60,10 +60,10 @@ The text at the bottom of the screen shows the keyboard shortcuts for performing
60
60
61
61
> ## Which Editor?
62
62
>
63
-
> When we say, "`nano` is a text editor," we really do mean "text": it can
63
+
> When we say, "`nano` is a text editor," we really do mean "text": `nano` can
64
64
> only work with plain character data, not tables, images, or any other
65
-
> human-friendly media. We use it in examples because it is one of the
66
-
> least complex text editors. However, because of this trait, it may
65
+
> human-friendly media. We use `nano` in examples because it is one of the
66
+
> least complex text editors. However, because of this trait, `nano` may
67
67
> not be powerful enough or flexible enough for the work you need to do
68
68
> after this workshop. On Unix systems (such as Linux and Mac OS X),
69
69
> many programmers use [Emacs](http://www.gnu.org/software/emacs/) or
@@ -74,10 +74,10 @@ The text at the bottom of the screen shows the keyboard shortcuts for performing
74
74
> editor called `notepad` that can be run from the command line in the same
75
75
> way as `nano` for the purposes of this lesson.
76
76
>
77
-
> No matter what editor you use, you will need to know where it searches
78
-
> for and saves files. If you start it from the shell, it will (probably)
77
+
> No matter what editor you use, you will need to know the default location where it searches
78
+
> for files and where files are saved. If you start an editor from the shell, it will (probably)
79
79
> use your current working directory as its default location. If you use
80
-
> your computer's start menu, it may want to save files in your desktop or
80
+
> your computer's start menu, the editor may want to save files in your desktop or
81
81
> documents directory instead. You can change this by navigating to
82
82
> another directory the first time you "Save As..."
83
83
{: .callout}
@@ -88,7 +88,7 @@ Once we're happy with our text, we can press <kbd>Ctrl</kbd>-<kbd>O</kbd> (press
88
88
holding it down, press the <kbd>O</kbd> key) to write our data to disk. You'll be asked what file we want to save this to:
89
89
press <kbd>Return</kbd> to accept the suggested default of `README.txt`.
90
90
91
-
Once our file is saved, we can use <kbd>Ctrl</kbd>-<kbd>X</kbd> to quit the editor and
91
+
Once our file is saved, we can use <kbd>Ctrl</kbd>-<kbd>X</kbd> to quit the `nano`editor and
92
92
return to the shell.
93
93
94
94
> ## Control, Ctrl, or ^ Key
@@ -182,7 +182,7 @@ It will look like nothing happened, but now if you look at `scripted_bad_reads.t
182
182
183
183
## Making the script into a program
184
184
185
-
We had to type `bash` because we needed to tell the computer what program to use to run this script. Instead, we can turn this script into its own program. We need to tell it that it's a program by making it executable. We can do this by changing the file permissions. We talked about permissions in [an earlier episode](http://www.datacarpentry.org/shell-genomics/03-working-with-files/).
185
+
We had to type `bash` because we needed to tell the computer what program to use to run this script. Instead, we can turn this script into its own program. We need to tell the computer that this script is a program by making the script file executable. We can do this by changing the file permissions. We talked about permissions in [an earlier episode](http://www.datacarpentry.org/shell-genomics/03-working-with-files/).
0 commit comments