Skip to content

Commit

Permalink
Update loops_and_scripts.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hwick authored Mar 18, 2024
1 parent 57b533e commit e53b2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Accelerate_with_automation/lessons/loops_and_scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ done

Most simply, it writes to the terminal (`echo`) the name of the file and the number of lines (`wc -l`) for each files that end in `.fq` in the current directory. The output is almost identical to what we had before.

In this case the list of files is specified using the asterisk wildcard: `*.fq`, i.e. all files that end in `.fq`. We could also have used the `$filenames` variable we created above, but using `*fq` is a bit simpler and more versatile.
In this case the list of files is specified using the asterisk wildcard: `*.fq`, i.e. all files that end in `.fq`.

Then, we execute two commands between the `do` and `done`. With a loop, we execute these commands for each file at a time. Once the commands are executed for one file, the loop then executes the same commands on the next file in the list.

Expand Down

0 comments on commit e53b2e5

Please sign in to comment.