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
> Notice how we didn't type the `YYYY-MM-DD` date ourselves, but let
572
+
> `date -I` do that mindless task for us. Find out about this option
573
+
> and the standard format that it uses.
574
+
>
575
+
> > ## Solution
576
+
> > Using `date --help` will show you that `-I` is short for [--iso-8601](https://en.wikipedia.org/wiki/ISO_8601), which essentially avoids the confusion between the European
577
+
> > and American date formats `DD.MM.YYYY` and `MM/DD/YYYY`.
578
+
> {: .solution}
579
+
{: .challenge}
580
+
570
581
Finally, we'll use the **regular expression syntax** covered earlier to search for similar words.
571
582
572
583
> ## Basic and extended regular expressions
@@ -661,23 +672,23 @@ Pair up with your neighbor and work on these exercises:
661
672
662
673
> ## Case insensitive search in select files
663
674
> Search for all case insensitive instances of that
664
-
> word in the 'America' and 'Africa' `.tsv` files in this directory. Print your results to a file `results/new.tsv`.
675
+
> word in the 'America' and 'Africa' `.tsv` files in this directory. Print your results to a file `results/hero.tsv`.
665
676
>
666
677
> > ## Solution
667
678
> > ~~~
668
-
> > $ grep -i hero *a.tsv > results/new.tsv
679
+
> > $ grep -i hero *a.tsv > results/hero.tsv
669
680
> > ~~~
670
681
> > {: .bash}
671
682
> {: .solution}
672
683
{: .challenge}
673
684
674
685
> ## Case insensitive search in select files (whole word)
675
686
> Search for all case insensitive instances of that whole word
676
-
> in the 'America' and 'Africa' `.tsv` files in this directory. Print your results to a file `results/new2.tsv`.
687
+
> in the 'America' and 'Africa' `.tsv` files in this directory. Print your results to a file `results/hero-i.tsv`.
0 commit comments