Skip to content

Commit

Permalink
Merge pull request #1 from sparce/gh-pages
Browse files Browse the repository at this point in the history
Unique challenge names for episodes
  • Loading branch information
KerensaMcElroy authored Apr 3, 2019
2 parents 92f1f33 + 285b0d5 commit 2c00494
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions _episodes/02-shell-wildcards.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sample3.txt sample6.txt sample9.txt sampleC.txt sampleF.txt
~~~
{: .output}

> ## Try it
> ## Try it 1
>
> 1. Write a similar ls command to list .txt files with a 2 digit/char sample number.
> 2. Write a similar ls command to list for samples specifically in the range of 10-19.
Expand Down Expand Up @@ -102,7 +102,7 @@ ls sample1[0-9].txt
Remember: an entire '[*list*]' set will only match a *single* listed character at a time.
> ## Try it
> ## Try it 2
>
> 3. Write an ls command to list .txt files for samples 2 to 5.
> 4. Write an ls command to list .txt files for samples X, Y and Z and sample A.
Expand Down Expand Up @@ -140,7 +140,7 @@ E.g.
{: .language-bash}
... would match any character that's not a digit from 0 to 9.
> ## Try it
> ## Try it 3
>
> 7. Write an ls command to list .txt files for all samples *other* than those numbered 4 to 7 and 9.
>
Expand Down Expand Up @@ -218,7 +218,7 @@ Brace expansion is always the first order of business when the command line inte
It's a useful tool, and while not quite fitting the regular expression theme, the concept
of listing longer options in a this-OR-that fashion will be visited again in proper regexs.
> ## Try it
> ## Try it 4
>
> 8. Write an ls command to list files for samples 8 to 13 and CD.
> 9. Write an ls command to list just .csv and .tab files for samples 11 and CD.
Expand Down
10 changes: 5 additions & 5 deletions _episodes/03-egrep-find.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Only the B met this criteria.



> ## Try it
> ## Try it 1
>
> 1. Write a grep -E command to search wordplay1.txt for either 'corn' or 'cow'
> 2. Try the above with -w option enabled (match as whole words only)
Expand Down Expand Up @@ -175,7 +175,7 @@ echo "1952 1986 2003 1995 2018" | grep -E -o '20[0-9][0-9]'
> ## Try it
> ## Try it 2
>
> 5. Write a grep -E command to search wordplay1.txt for 4-letter words ending in 'oat'
> 6. What if you didn't know if the words started with lower case or capitol letters?
Expand Down Expand Up @@ -216,7 +216,7 @@ lag
> ## Try it
> ## Try it 3
>
> 9. Modify your 'oat' word finder to find any 4-letter 'oat' words other than 'boat' and 'goat'
>
Expand Down Expand Up @@ -360,7 +360,7 @@ sophisticated
> ## Try it
> ## Try it 4
>
> 10. Use 'grep -E -o' on wordplay1.txt to match *all* of any line that starts with a 'c'
> 11. Use 'grep -E -o' on wordplay1.txt to match the *first word* of lines starting with a 'c'
Expand Down Expand Up @@ -408,7 +408,7 @@ echo "11/06/91 5/9/2018" | grep -E -o '[0-9]+/[0-9]+/[0-9]+'
> ## Try it
> ## Try it 5
>
> Have a look at 'namesndates.txt' (```cat namesndates.txt```)
> 14. Use 'grep -E -o' on namesndates.txt to list times (e.g. 20:57).
Expand Down
4 changes: 2 additions & 2 deletions _episodes/04-egrep-charclasses.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ hirdWor



## Try it
> ## Try it 1
>
> 1. Use 'grep -E -o' on wordplay1.txt to print the first 2 words of any line using
> a. [[:alpha:]] and [[:space:]]
Expand Down Expand Up @@ -238,7 +238,7 @@ Our pattern matched to three letters, then to those same three letters repeated
## Try it
> ## Try it 2
>
> 4. Grep 'wordplay1.txt' to print the only line that contains the same word repeated twice.
> Hint: You may need to use the '\\b' word-boundary anchor.
Expand Down
4 changes: 2 additions & 2 deletions _episodes/05-sed-substitution.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ helloAndrew



> ## Try it
> ## Try it 1
>
> Using ```sed -E 's/ / /g' wordplay1.txt```...
>
Expand Down Expand Up @@ -200,7 +200,7 @@ two one
> ## Try it
> ## Try it 2
>
> Using ```sed -E 's/ / /g' wordplay1.txt```...
>
Expand Down

0 comments on commit 2c00494

Please sign in to comment.