From c4f83fe2db1889a94b5e52fda0bc778fc679871e Mon Sep 17 00:00:00 2001 From: GitHub Actions <actions@github.com> Date: Tue, 7 May 2024 14:59:11 +0000 Subject: [PATCH] site deploy Auto-generated via {sandpaper} Source : 8b0d83d69819c51e0c14a38af4e2bda2677105eb Branch : md-outputs Author : GitHub Actions <actions@github.com> Time : 2024-05-07 14:58:56 +0000 Message : markdown source builds Auto-generated via {sandpaper} Source : c88f1617b8bafb2d505d683ec180bd76213026f3 Branch : main Author : Kaitlin Newson <kaitlin.newson@gmail.com> Time : 2024-05-07 14:57:53 +0000 Message : Merge pull request #268 from LibraryCarpentry/rm-just Remove a few uses of "just" --- 04-loops.html | 2 +- 05-counting-mining.html | 66 +++++++++++++++--------------- aio.html | 66 +++++++++++++++--------------- instructor/04-loops.html | 2 +- instructor/05-counting-mining.html | 66 +++++++++++++++--------------- instructor/aio.html | 66 +++++++++++++++--------------- md5sum.txt | 2 +- pkgdown.yml | 2 +- 8 files changed, 136 insertions(+), 136 deletions(-) diff --git a/04-loops.html b/04-loops.html index 98de42b8..47e4e5c9 100644 --- a/04-loops.html +++ b/04-loops.html @@ -456,7 +456,7 @@ <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution1" aria-expanded="false" aria-controls="collapseSolution1"> <h4 class="accordion-header" id="headingSolution1">Show me the solution</h4> </button> -<div id="collapseSolution1" class="accordion-collapse collapse" data-bs-parent="#accordionSolution1" aria-labelledby="headingSolution1"> +<div id="collapseSolution1" class="accordion-collapse collapse" aria-labelledby="headingSolution1" data-bs-parent="#accordionSolution1"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb6"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> diff --git a/05-counting-mining.html b/05-counting-mining.html index ff634568..87ec3446 100644 --- a/05-counting-mining.html +++ b/05-counting-mining.html @@ -267,7 +267,7 @@ <h2 class="accordion-header" id="flush-headingTwelve"> </div> <hr></nav><main id="main-content" class="main-content"><div class="container lesson-content"> <h1>Counting and mining with the shell</h1> - <p>Last updated on 2024-02-23 | + <p>Last updated on 2024-05-07 | <a href="https://github.com/librarycarpentry/lc-shell/edit/main/episodes/05-counting-mining.md" class="external-link">Edit this page <i aria-hidden="true" data-feather="edit"></i></a></p> @@ -345,8 +345,8 @@ <h3 class="code-label">OUTPUT<i aria-hidden="true" data-feather="chevron-left">< </h3> <pre class="output" tabindex="0"><code>/Users/riley/Desktop/shell-lesson</code></pre> </div> -<p>And let’s just check what files are in the directory and how large -they are with <code>ls -lhS</code>:</p> +<p>And let’s check what files are in the directory and how large they +are with <code>ls -lhS</code>:</p> <div class="codewrapper sourceCode" id="cb4"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> </h3> @@ -380,15 +380,15 @@ <h3 class="callout-title">CSV and TSV Files<a class="anchor" aria-label="anchor" <div class="callout-content"> <p>CSV (Comma-separated values) is a common plain text format for storing tabular data, where each record occupies one line and the values -are separated by commas. TSV (Tab-separated values) is just the same -except that values are separated by tabs rather than commas. -Confusingly, CSV is sometimes used to refer to both CSV, TSV and -variations of them. The simplicity of the formats make them great for -exchange and archival. They are not bound to a specific program (unlike -Excel files, say, there is no <code>CSV</code> program, just lots and -lots of programs that support the format, including Excel by the way.), -and you wouldn’t have any problems opening a 40 year old file today if -you came across one.</p> +are separated by commas. TSV (Tab-separated values) is the same except +that values are separated by tabs rather than commas. Confusingly, CSV +is sometimes used to refer to both CSV, TSV and variations of them. The +simplicity of the formats make them great for exchange and archival. +They are not bound to a specific program (unlike Excel files, say, there +is no <code>CSV</code> program, just lots and lots of programs that +support the format, including Excel by the way.), and you wouldn’t have +any problems opening a 40 year old file today if you came across +one.</p> </div> </div> </div> @@ -446,7 +446,7 @@ <h3 class="code-label">OUTPUT<i aria-hidden="true" data-feather="chevron-left">< <p>The first three columns contains the number of lines, words and bytes.</p> <p>If we only have a handful of files to compare, it might be faster or -more convenient to just check with Microsoft Excel, OpenRefine or your +more convenient to check with Microsoft Excel, OpenRefine or your favourite text editor, but when we have tens, hundreds or thousands of documents, the Unix shell has a clear speed advantage. The real power of the shell comes from being able to combine commands and automate tasks, @@ -612,10 +612,10 @@ <h3 class="callout-title">Adding another pipe<a class="anchor" aria-label="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution1" aria-expanded="false" aria-controls="collapseSolution1"> <h4 class="accordion-header" id="headingSolution1">Show me the solution</h4> </button> -<div id="collapseSolution1" class="accordion-collapse collapse" data-bs-parent="#accordionSolution1" aria-labelledby="headingSolution1"> +<div id="collapseSolution1" class="accordion-collapse collapse" aria-labelledby="headingSolution1" data-bs-parent="#accordionSolution1"> <div class="accordion-body"> -<p>The <code>cat</code> command just outputs whatever it gets as input, -so you get exactly the same output from</p> +<p>The <code>cat</code> command outputs whatever it gets as input, so +you get exactly the same output from</p> <div class="codewrapper sourceCode" id="cb24"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> </h3> @@ -669,7 +669,7 @@ <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution2" aria-expanded="false" aria-controls="collapseSolution2"> <h4 class="accordion-header" id="headingSolution2">Show me the solution</h4> </button> -<div id="collapseSolution2" class="accordion-collapse collapse" data-bs-parent="#accordionSolution2" aria-labelledby="headingSolution2"> +<div id="collapseSolution2" class="accordion-collapse collapse" aria-labelledby="headingSolution2" data-bs-parent="#accordionSolution2"> <div class="accordion-body"> <p>Here we use the <code>wc</code> command with the <code>-w</code> (word) flag on all <code>tsv</code> files, <code>sort</code> them and @@ -704,7 +704,7 @@ <h3 class="callout-title">Counting number of files<a class="anchor" aria-label=" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution3" aria-expanded="false" aria-controls="collapseSolution3"> <h4 class="accordion-header" id="headingSolution3">Show me the solution</h4> </button> -<div id="collapseSolution3" class="accordion-collapse collapse" data-bs-parent="#accordionSolution3" aria-labelledby="headingSolution3"> +<div id="collapseSolution3" class="accordion-collapse collapse" aria-labelledby="headingSolution3" data-bs-parent="#accordionSolution3"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb29"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -734,7 +734,7 @@ <h3 class="callout-title">Writing to files<a class="anchor" aria-label="anchor" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution4" aria-expanded="false" aria-controls="collapseSolution4"> <h4 class="accordion-header" id="headingSolution4">Show me the solution</h4> </button> -<div id="collapseSolution4" class="accordion-collapse collapse" data-bs-parent="#accordionSolution4" aria-labelledby="headingSolution4"> +<div id="collapseSolution4" class="accordion-collapse collapse" aria-labelledby="headingSolution4" data-bs-parent="#accordionSolution4"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb30"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -769,7 +769,7 @@ <h3 class="callout-title">Appending to a file<a class="anchor" aria-label="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution5" aria-expanded="false" aria-controls="collapseSolution5"> <h4 class="accordion-header" id="headingSolution5">Show me the solution</h4> </button> -<div id="collapseSolution5" class="accordion-collapse collapse" data-bs-parent="#accordionSolution5" aria-labelledby="headingSolution5"> +<div id="collapseSolution5" class="accordion-collapse collapse" aria-labelledby="headingSolution5" data-bs-parent="#accordionSolution5"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb31"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -802,7 +802,7 @@ <h3 class="callout-title">Counting the number of words<a class="anchor" aria-lab <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution6" aria-expanded="false" aria-controls="collapseSolution6"> <h4 class="accordion-header" id="headingSolution6">Show me the solution</h4> </button> -<div id="collapseSolution6" class="accordion-collapse collapse" data-bs-parent="#accordionSolution6" aria-labelledby="headingSolution6"> +<div id="collapseSolution6" class="accordion-collapse collapse" aria-labelledby="headingSolution6" data-bs-parent="#accordionSolution6"> <div class="accordion-body"> <p>From <code>man wc</code>, you will see that there is a <code>-w</code> flag to print the number of words:</p> @@ -1020,7 +1020,7 @@ <h3 class="callout-title">Automatically adding a date prefix<a class="anchor" ar <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution7" aria-expanded="false" aria-controls="collapseSolution7"> <h4 class="accordion-header" id="headingSolution7">Show me the solution</h4> </button> -<div id="collapseSolution7" class="accordion-collapse collapse" data-bs-parent="#accordionSolution7" aria-labelledby="headingSolution7"> +<div id="collapseSolution7" class="accordion-collapse collapse" aria-labelledby="headingSolution7" data-bs-parent="#accordionSolution7"> <div class="accordion-body"> <p>Using <code>date --help</code> (on Git Bash for Windows or Linux) or <code>man date</code> (on macOS or Linux) will show you that the @@ -1097,7 +1097,7 @@ <h3 class="callout-title">Case sensitive search<a class="anchor" aria-label="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution8" aria-expanded="false" aria-controls="collapseSolution8"> <h4 class="accordion-header" id="headingSolution8">Show me the solution</h4> </button> -<div id="collapseSolution8" class="accordion-collapse collapse" data-bs-parent="#accordionSolution8" aria-labelledby="headingSolution8"> +<div id="collapseSolution8" class="accordion-collapse collapse" aria-labelledby="headingSolution8" data-bs-parent="#accordionSolution8"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb52"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1127,7 +1127,7 @@ <h3 class="callout-title">Case sensitive search in select files<a class="anchor" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution9" aria-expanded="false" aria-controls="collapseSolution9"> <h4 class="accordion-header" id="headingSolution9">Show me the solution</h4> </button> -<div id="collapseSolution9" class="accordion-collapse collapse" data-bs-parent="#accordionSolution9" aria-labelledby="headingSolution9"> +<div id="collapseSolution9" class="accordion-collapse collapse" aria-labelledby="headingSolution9" data-bs-parent="#accordionSolution9"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb53"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1157,7 +1157,7 @@ <h3 class="callout-title">Count words (case sensitive)<a class="anchor" aria-lab <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution10" aria-expanded="false" aria-controls="collapseSolution10"> <h4 class="accordion-header" id="headingSolution10">Show me the solution</h4> </button> -<div id="collapseSolution10" class="accordion-collapse collapse" data-bs-parent="#accordionSolution10" aria-labelledby="headingSolution10"> +<div id="collapseSolution10" class="accordion-collapse collapse" aria-labelledby="headingSolution10" data-bs-parent="#accordionSolution10"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb54"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1187,7 +1187,7 @@ <h3 class="callout-title">Count words (case insensitive)<a class="anchor" aria-l <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution11" aria-expanded="false" aria-controls="collapseSolution11"> <h4 class="accordion-header" id="headingSolution11">Show me the solution</h4> </button> -<div id="collapseSolution11" class="accordion-collapse collapse" data-bs-parent="#accordionSolution11" aria-labelledby="headingSolution11"> +<div id="collapseSolution11" class="accordion-collapse collapse" aria-labelledby="headingSolution11" data-bs-parent="#accordionSolution11"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb55"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1217,7 +1217,7 @@ <h3 class="callout-title">Case insensitive search in select files<a class="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution12" aria-expanded="false" aria-controls="collapseSolution12"> <h4 class="accordion-header" id="headingSolution12">Show me the solution</h4> </button> -<div id="collapseSolution12" class="accordion-collapse collapse" data-bs-parent="#accordionSolution12" aria-labelledby="headingSolution12"> +<div id="collapseSolution12" class="accordion-collapse collapse" aria-labelledby="headingSolution12" data-bs-parent="#accordionSolution12"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb56"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1248,7 +1248,7 @@ <h3 class="callout-title">Case insensitive search in select files (whole <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution13" aria-expanded="false" aria-controls="collapseSolution13"> <h4 class="accordion-header" id="headingSolution13">Show me the solution</h4> </button> -<div id="collapseSolution13" class="accordion-collapse collapse" data-bs-parent="#accordionSolution13" aria-labelledby="headingSolution13"> +<div id="collapseSolution13" class="accordion-collapse collapse" aria-labelledby="headingSolution13" data-bs-parent="#accordionSolution13"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb57"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1281,7 +1281,7 @@ <h3 class="callout-title">Searching with regular expressions<a class="anchor" ar <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution14" aria-expanded="false" aria-controls="collapseSolution14"> <h4 class="accordion-header" id="headingSolution14">Show me the solution</h4> </button> -<div id="collapseSolution14" class="accordion-collapse collapse" data-bs-parent="#accordionSolution14" aria-labelledby="headingSolution14"> +<div id="collapseSolution14" class="accordion-collapse collapse" aria-labelledby="headingSolution14" data-bs-parent="#accordionSolution14"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb58"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1328,7 +1328,7 @@ <h3 class="callout-title">Finding unique values<a class="anchor" aria-label="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution15" aria-expanded="false" aria-controls="collapseSolution15"> <h4 class="accordion-header" id="headingSolution15">Show me the solution</h4> </button> -<div id="collapseSolution15" class="accordion-collapse collapse" data-bs-parent="#accordionSolution15" aria-labelledby="headingSolution15"> +<div id="collapseSolution15" class="accordion-collapse collapse" aria-labelledby="headingSolution15" data-bs-parent="#accordionSolution15"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb60"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1423,7 +1423,7 @@ <h3 class="callout-title">Why are the variables double-quoted here?<a class="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution16" aria-expanded="false" aria-controls="collapseSolution16"> <h4 class="accordion-header" id="headingSolution16">Solutions</h4> </button> -<div id="collapseSolution16" class="accordion-collapse collapse" data-bs-parent="#accordionSolution16" aria-labelledby="headingSolution16"> +<div id="collapseSolution16" class="accordion-collapse collapse" aria-labelledby="headingSolution16" data-bs-parent="#accordionSolution16"> <div class="accordion-body"> <ol style="list-style-type: lower-alpha"><li><p>Because we are explicitly listing the names after <code>in</code>, and those contain no white-space. However, for @@ -1504,7 +1504,7 @@ <h3 id="now-your-turn">Now your turn<a class="anchor" aria-label="anchor" href=" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution17" aria-expanded="false" aria-controls="collapseSolution17"> <h4 class="accordion-header" id="headingSolution17">Show me the solution</h4> </button> -<div id="collapseSolution17" class="accordion-collapse collapse" data-bs-parent="#accordionSolution17" aria-labelledby="headingSolution17"> +<div id="collapseSolution17" class="accordion-collapse collapse" aria-labelledby="headingSolution17" data-bs-parent="#accordionSolution17"> <div class="accordion-body"> <p>First, let’s see where our desired columns are:</p> <div class="codewrapper sourceCode" id="cb68"> @@ -1611,7 +1611,7 @@ <h3 class="callout-title">Key Points<a class="anchor" aria-label="anchor" href=" "url": "https://librarycarpentry.github.io/lc-shell/05-counting-mining.html", "identifier": "https://librarycarpentry.github.io/lc-shell/05-counting-mining.html", "dateCreated": "2018-04-12", - "dateModified": "2024-02-23", + "dateModified": "2024-05-07", "datePublished": "2024-05-07" } diff --git a/aio.html b/aio.html index 8603d07a..742c6041 100644 --- a/aio.html +++ b/aio.html @@ -1525,7 +1525,7 @@ <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution1" aria-expanded="false" aria-controls="collapseSolution1"> <h4 class="accordion-header" id="headingSolution1">Show me the solution</h4> </button> -<div id="collapseSolution1" class="accordion-collapse collapse" data-bs-parent="#accordionSolution1" aria-labelledby="headingSolution1"> +<div id="collapseSolution1" class="accordion-collapse collapse" aria-labelledby="headingSolution1" data-bs-parent="#accordionSolution1"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb6"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1601,7 +1601,7 @@ <h3 class="callout-title">Key Points<a class="anchor" aria-label="anchor" href=" </div> </section></section><section id="aio-05-counting-mining"><p>Content from <a href="05-counting-mining.html">Counting and mining with the shell</a></p> <hr> -<p>Last updated on 2024-02-23 | +<p>Last updated on 2024-05-07 | <a href="https://github.com/librarycarpentry/lc-shell/edit/main/episodes/05-counting-mining.md" class="external-link">Edit this page <i aria-hidden="true" data-feather="edit"></i></a></p> <div class="text-end"> @@ -1679,8 +1679,8 @@ <h3 class="code-label">OUTPUT<i aria-hidden="true" data-feather="chevron-left">< </h3> <pre class="output" tabindex="0"><code>/Users/riley/Desktop/shell-lesson</code></pre> </div> -<p>And let’s just check what files are in the directory and how large -they are with <code>ls -lhS</code>:</p> +<p>And let’s check what files are in the directory and how large they +are with <code>ls -lhS</code>:</p> <div class="codewrapper sourceCode" id="cb4"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> </h3> @@ -1714,15 +1714,15 @@ <h3 class="callout-title">CSV and TSV Files<a class="anchor" aria-label="anchor" <div class="callout-content"> <p>CSV (Comma-separated values) is a common plain text format for storing tabular data, where each record occupies one line and the values -are separated by commas. TSV (Tab-separated values) is just the same -except that values are separated by tabs rather than commas. -Confusingly, CSV is sometimes used to refer to both CSV, TSV and -variations of them. The simplicity of the formats make them great for -exchange and archival. They are not bound to a specific program (unlike -Excel files, say, there is no <code>CSV</code> program, just lots and -lots of programs that support the format, including Excel by the way.), -and you wouldn’t have any problems opening a 40 year old file today if -you came across one.</p> +are separated by commas. TSV (Tab-separated values) is the same except +that values are separated by tabs rather than commas. Confusingly, CSV +is sometimes used to refer to both CSV, TSV and variations of them. The +simplicity of the formats make them great for exchange and archival. +They are not bound to a specific program (unlike Excel files, say, there +is no <code>CSV</code> program, just lots and lots of programs that +support the format, including Excel by the way.), and you wouldn’t have +any problems opening a 40 year old file today if you came across +one.</p> </div> </div> </div> @@ -1780,7 +1780,7 @@ <h3 class="code-label">OUTPUT<i aria-hidden="true" data-feather="chevron-left">< <p>The first three columns contains the number of lines, words and bytes.</p> <p>If we only have a handful of files to compare, it might be faster or -more convenient to just check with Microsoft Excel, OpenRefine or your +more convenient to check with Microsoft Excel, OpenRefine or your favourite text editor, but when we have tens, hundreds or thousands of documents, the Unix shell has a clear speed advantage. The real power of the shell comes from being able to combine commands and automate tasks, @@ -1946,10 +1946,10 @@ <h3 class="callout-title">Adding another pipe<a class="anchor" aria-label="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution1" aria-expanded="false" aria-controls="collapseSolution1"> <h4 class="accordion-header" id="headingSolution1">Show me the solution</h4> </button> -<div id="collapseSolution1" class="accordion-collapse collapse" data-bs-parent="#accordionSolution1" aria-labelledby="headingSolution1"> +<div id="collapseSolution1" class="accordion-collapse collapse" aria-labelledby="headingSolution1" data-bs-parent="#accordionSolution1"> <div class="accordion-body"> -<p>The <code>cat</code> command just outputs whatever it gets as input, -so you get exactly the same output from</p> +<p>The <code>cat</code> command outputs whatever it gets as input, so +you get exactly the same output from</p> <div class="codewrapper sourceCode" id="cb24"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> </h3> @@ -2003,7 +2003,7 @@ <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution2" aria-expanded="false" aria-controls="collapseSolution2"> <h4 class="accordion-header" id="headingSolution2">Show me the solution</h4> </button> -<div id="collapseSolution2" class="accordion-collapse collapse" data-bs-parent="#accordionSolution2" aria-labelledby="headingSolution2"> +<div id="collapseSolution2" class="accordion-collapse collapse" aria-labelledby="headingSolution2" data-bs-parent="#accordionSolution2"> <div class="accordion-body"> <p>Here we use the <code>wc</code> command with the <code>-w</code> (word) flag on all <code>tsv</code> files, <code>sort</code> them and @@ -2038,7 +2038,7 @@ <h3 class="callout-title">Counting number of files<a class="anchor" aria-label=" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution3" aria-expanded="false" aria-controls="collapseSolution3"> <h4 class="accordion-header" id="headingSolution3">Show me the solution</h4> </button> -<div id="collapseSolution3" class="accordion-collapse collapse" data-bs-parent="#accordionSolution3" aria-labelledby="headingSolution3"> +<div id="collapseSolution3" class="accordion-collapse collapse" aria-labelledby="headingSolution3" data-bs-parent="#accordionSolution3"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb29"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2068,7 +2068,7 @@ <h3 class="callout-title">Writing to files<a class="anchor" aria-label="anchor" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution4" aria-expanded="false" aria-controls="collapseSolution4"> <h4 class="accordion-header" id="headingSolution4">Show me the solution</h4> </button> -<div id="collapseSolution4" class="accordion-collapse collapse" data-bs-parent="#accordionSolution4" aria-labelledby="headingSolution4"> +<div id="collapseSolution4" class="accordion-collapse collapse" aria-labelledby="headingSolution4" data-bs-parent="#accordionSolution4"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb30"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2103,7 +2103,7 @@ <h3 class="callout-title">Appending to a file<a class="anchor" aria-label="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution5" aria-expanded="false" aria-controls="collapseSolution5"> <h4 class="accordion-header" id="headingSolution5">Show me the solution</h4> </button> -<div id="collapseSolution5" class="accordion-collapse collapse" data-bs-parent="#accordionSolution5" aria-labelledby="headingSolution5"> +<div id="collapseSolution5" class="accordion-collapse collapse" aria-labelledby="headingSolution5" data-bs-parent="#accordionSolution5"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb31"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2136,7 +2136,7 @@ <h3 class="callout-title">Counting the number of words<a class="anchor" aria-lab <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution6" aria-expanded="false" aria-controls="collapseSolution6"> <h4 class="accordion-header" id="headingSolution6">Show me the solution</h4> </button> -<div id="collapseSolution6" class="accordion-collapse collapse" data-bs-parent="#accordionSolution6" aria-labelledby="headingSolution6"> +<div id="collapseSolution6" class="accordion-collapse collapse" aria-labelledby="headingSolution6" data-bs-parent="#accordionSolution6"> <div class="accordion-body"> <p>From <code>man wc</code>, you will see that there is a <code>-w</code> flag to print the number of words:</p> @@ -2355,7 +2355,7 @@ <h3 class="callout-title">Automatically adding a date prefix<a class="anchor" ar <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution7" aria-expanded="false" aria-controls="collapseSolution7"> <h4 class="accordion-header" id="headingSolution7">Show me the solution</h4> </button> -<div id="collapseSolution7" class="accordion-collapse collapse" data-bs-parent="#accordionSolution7" aria-labelledby="headingSolution7"> +<div id="collapseSolution7" class="accordion-collapse collapse" aria-labelledby="headingSolution7" data-bs-parent="#accordionSolution7"> <div class="accordion-body"> <p>Using <code>date --help</code> (on Git Bash for Windows or Linux) or <code>man date</code> (on macOS or Linux) will show you that the @@ -2432,7 +2432,7 @@ <h3 class="callout-title">Case sensitive search<a class="anchor" aria-label="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution8" aria-expanded="false" aria-controls="collapseSolution8"> <h4 class="accordion-header" id="headingSolution8">Show me the solution</h4> </button> -<div id="collapseSolution8" class="accordion-collapse collapse" data-bs-parent="#accordionSolution8" aria-labelledby="headingSolution8"> +<div id="collapseSolution8" class="accordion-collapse collapse" aria-labelledby="headingSolution8" data-bs-parent="#accordionSolution8"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb52"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2462,7 +2462,7 @@ <h3 class="callout-title">Case sensitive search in select files<a class="anchor" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution9" aria-expanded="false" aria-controls="collapseSolution9"> <h4 class="accordion-header" id="headingSolution9">Show me the solution</h4> </button> -<div id="collapseSolution9" class="accordion-collapse collapse" data-bs-parent="#accordionSolution9" aria-labelledby="headingSolution9"> +<div id="collapseSolution9" class="accordion-collapse collapse" aria-labelledby="headingSolution9" data-bs-parent="#accordionSolution9"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb53"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2492,7 +2492,7 @@ <h3 class="callout-title">Count words (case sensitive)<a class="anchor" aria-lab <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution10" aria-expanded="false" aria-controls="collapseSolution10"> <h4 class="accordion-header" id="headingSolution10">Show me the solution</h4> </button> -<div id="collapseSolution10" class="accordion-collapse collapse" data-bs-parent="#accordionSolution10" aria-labelledby="headingSolution10"> +<div id="collapseSolution10" class="accordion-collapse collapse" aria-labelledby="headingSolution10" data-bs-parent="#accordionSolution10"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb54"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2522,7 +2522,7 @@ <h3 class="callout-title">Count words (case insensitive)<a class="anchor" aria-l <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution11" aria-expanded="false" aria-controls="collapseSolution11"> <h4 class="accordion-header" id="headingSolution11">Show me the solution</h4> </button> -<div id="collapseSolution11" class="accordion-collapse collapse" data-bs-parent="#accordionSolution11" aria-labelledby="headingSolution11"> +<div id="collapseSolution11" class="accordion-collapse collapse" aria-labelledby="headingSolution11" data-bs-parent="#accordionSolution11"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb55"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2552,7 +2552,7 @@ <h3 class="callout-title">Case insensitive search in select files<a class="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution12" aria-expanded="false" aria-controls="collapseSolution12"> <h4 class="accordion-header" id="headingSolution12">Show me the solution</h4> </button> -<div id="collapseSolution12" class="accordion-collapse collapse" data-bs-parent="#accordionSolution12" aria-labelledby="headingSolution12"> +<div id="collapseSolution12" class="accordion-collapse collapse" aria-labelledby="headingSolution12" data-bs-parent="#accordionSolution12"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb56"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2583,7 +2583,7 @@ <h3 class="callout-title">Case insensitive search in select files (whole <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution13" aria-expanded="false" aria-controls="collapseSolution13"> <h4 class="accordion-header" id="headingSolution13">Show me the solution</h4> </button> -<div id="collapseSolution13" class="accordion-collapse collapse" data-bs-parent="#accordionSolution13" aria-labelledby="headingSolution13"> +<div id="collapseSolution13" class="accordion-collapse collapse" aria-labelledby="headingSolution13" data-bs-parent="#accordionSolution13"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb57"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2616,7 +2616,7 @@ <h3 class="callout-title">Searching with regular expressions<a class="anchor" ar <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution14" aria-expanded="false" aria-controls="collapseSolution14"> <h4 class="accordion-header" id="headingSolution14">Show me the solution</h4> </button> -<div id="collapseSolution14" class="accordion-collapse collapse" data-bs-parent="#accordionSolution14" aria-labelledby="headingSolution14"> +<div id="collapseSolution14" class="accordion-collapse collapse" aria-labelledby="headingSolution14" data-bs-parent="#accordionSolution14"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb58"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2663,7 +2663,7 @@ <h3 class="callout-title">Finding unique values<a class="anchor" aria-label="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution15" aria-expanded="false" aria-controls="collapseSolution15"> <h4 class="accordion-header" id="headingSolution15">Show me the solution</h4> </button> -<div id="collapseSolution15" class="accordion-collapse collapse" data-bs-parent="#accordionSolution15" aria-labelledby="headingSolution15"> +<div id="collapseSolution15" class="accordion-collapse collapse" aria-labelledby="headingSolution15" data-bs-parent="#accordionSolution15"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb60"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2763,7 +2763,7 @@ <h3 class="callout-title">Why are the variables double-quoted here?<a class="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution16" aria-expanded="false" aria-controls="collapseSolution16"> <h4 class="accordion-header" id="headingSolution16">Solutions</h4> </button> -<div id="collapseSolution16" class="accordion-collapse collapse" data-bs-parent="#accordionSolution16" aria-labelledby="headingSolution16"> +<div id="collapseSolution16" class="accordion-collapse collapse" aria-labelledby="headingSolution16" data-bs-parent="#accordionSolution16"> <div class="accordion-body"> <ol style="list-style-type: lower-alpha"> <li><p>Because we are explicitly listing the names after @@ -2847,7 +2847,7 @@ <h3 id="now-your-turn">Now your turn<a class="anchor" aria-label="anchor" href=" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution17" aria-expanded="false" aria-controls="collapseSolution17"> <h4 class="accordion-header" id="headingSolution17">Show me the solution</h4> </button> -<div id="collapseSolution17" class="accordion-collapse collapse" data-bs-parent="#accordionSolution17" aria-labelledby="headingSolution17"> +<div id="collapseSolution17" class="accordion-collapse collapse" aria-labelledby="headingSolution17" data-bs-parent="#accordionSolution17"> <div class="accordion-body"> <p>First, let’s see where our desired columns are:</p> <div class="codewrapper sourceCode" id="cb68"> diff --git a/instructor/04-loops.html b/instructor/04-loops.html index bfc8014a..84646f14 100644 --- a/instructor/04-loops.html +++ b/instructor/04-loops.html @@ -458,7 +458,7 @@ <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution1" aria-expanded="false" aria-controls="collapseSolution1"> <h4 class="accordion-header" id="headingSolution1">Show me the solution</h4> </button> -<div id="collapseSolution1" class="accordion-collapse collapse" data-bs-parent="#accordionSolution1" aria-labelledby="headingSolution1"> +<div id="collapseSolution1" class="accordion-collapse collapse" aria-labelledby="headingSolution1" data-bs-parent="#accordionSolution1"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb6"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> diff --git a/instructor/05-counting-mining.html b/instructor/05-counting-mining.html index 7f38faf9..b2c407e5 100644 --- a/instructor/05-counting-mining.html +++ b/instructor/05-counting-mining.html @@ -267,7 +267,7 @@ <h2 class="accordion-header" id="flush-headingTwelve"> </div> <hr></nav><main id="main-content" class="main-content"><div class="container lesson-content"> <h1>Counting and mining with the shell</h1> - <p>Last updated on 2024-02-23 | + <p>Last updated on 2024-05-07 | <a href="https://github.com/librarycarpentry/lc-shell/edit/main/episodes/05-counting-mining.md" class="external-link">Edit this page <i aria-hidden="true" data-feather="edit"></i></a></p> @@ -347,8 +347,8 @@ <h3 class="code-label">OUTPUT<i aria-hidden="true" data-feather="chevron-left">< </h3> <pre class="output" tabindex="0"><code>/Users/riley/Desktop/shell-lesson</code></pre> </div> -<p>And let’s just check what files are in the directory and how large -they are with <code>ls -lhS</code>:</p> +<p>And let’s check what files are in the directory and how large they +are with <code>ls -lhS</code>:</p> <div class="codewrapper sourceCode" id="cb4"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> </h3> @@ -382,15 +382,15 @@ <h3 class="callout-title">CSV and TSV Files<a class="anchor" aria-label="anchor" <div class="callout-content"> <p>CSV (Comma-separated values) is a common plain text format for storing tabular data, where each record occupies one line and the values -are separated by commas. TSV (Tab-separated values) is just the same -except that values are separated by tabs rather than commas. -Confusingly, CSV is sometimes used to refer to both CSV, TSV and -variations of them. The simplicity of the formats make them great for -exchange and archival. They are not bound to a specific program (unlike -Excel files, say, there is no <code>CSV</code> program, just lots and -lots of programs that support the format, including Excel by the way.), -and you wouldn’t have any problems opening a 40 year old file today if -you came across one.</p> +are separated by commas. TSV (Tab-separated values) is the same except +that values are separated by tabs rather than commas. Confusingly, CSV +is sometimes used to refer to both CSV, TSV and variations of them. The +simplicity of the formats make them great for exchange and archival. +They are not bound to a specific program (unlike Excel files, say, there +is no <code>CSV</code> program, just lots and lots of programs that +support the format, including Excel by the way.), and you wouldn’t have +any problems opening a 40 year old file today if you came across +one.</p> </div> </div> </div> @@ -448,7 +448,7 @@ <h3 class="code-label">OUTPUT<i aria-hidden="true" data-feather="chevron-left">< <p>The first three columns contains the number of lines, words and bytes.</p> <p>If we only have a handful of files to compare, it might be faster or -more convenient to just check with Microsoft Excel, OpenRefine or your +more convenient to check with Microsoft Excel, OpenRefine or your favourite text editor, but when we have tens, hundreds or thousands of documents, the Unix shell has a clear speed advantage. The real power of the shell comes from being able to combine commands and automate tasks, @@ -614,10 +614,10 @@ <h3 class="callout-title">Adding another pipe<a class="anchor" aria-label="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution1" aria-expanded="false" aria-controls="collapseSolution1"> <h4 class="accordion-header" id="headingSolution1">Show me the solution</h4> </button> -<div id="collapseSolution1" class="accordion-collapse collapse" data-bs-parent="#accordionSolution1" aria-labelledby="headingSolution1"> +<div id="collapseSolution1" class="accordion-collapse collapse" aria-labelledby="headingSolution1" data-bs-parent="#accordionSolution1"> <div class="accordion-body"> -<p>The <code>cat</code> command just outputs whatever it gets as input, -so you get exactly the same output from</p> +<p>The <code>cat</code> command outputs whatever it gets as input, so +you get exactly the same output from</p> <div class="codewrapper sourceCode" id="cb24"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> </h3> @@ -671,7 +671,7 @@ <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution2" aria-expanded="false" aria-controls="collapseSolution2"> <h4 class="accordion-header" id="headingSolution2">Show me the solution</h4> </button> -<div id="collapseSolution2" class="accordion-collapse collapse" data-bs-parent="#accordionSolution2" aria-labelledby="headingSolution2"> +<div id="collapseSolution2" class="accordion-collapse collapse" aria-labelledby="headingSolution2" data-bs-parent="#accordionSolution2"> <div class="accordion-body"> <p>Here we use the <code>wc</code> command with the <code>-w</code> (word) flag on all <code>tsv</code> files, <code>sort</code> them and @@ -706,7 +706,7 @@ <h3 class="callout-title">Counting number of files<a class="anchor" aria-label=" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution3" aria-expanded="false" aria-controls="collapseSolution3"> <h4 class="accordion-header" id="headingSolution3">Show me the solution</h4> </button> -<div id="collapseSolution3" class="accordion-collapse collapse" data-bs-parent="#accordionSolution3" aria-labelledby="headingSolution3"> +<div id="collapseSolution3" class="accordion-collapse collapse" aria-labelledby="headingSolution3" data-bs-parent="#accordionSolution3"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb29"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -736,7 +736,7 @@ <h3 class="callout-title">Writing to files<a class="anchor" aria-label="anchor" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution4" aria-expanded="false" aria-controls="collapseSolution4"> <h4 class="accordion-header" id="headingSolution4">Show me the solution</h4> </button> -<div id="collapseSolution4" class="accordion-collapse collapse" data-bs-parent="#accordionSolution4" aria-labelledby="headingSolution4"> +<div id="collapseSolution4" class="accordion-collapse collapse" aria-labelledby="headingSolution4" data-bs-parent="#accordionSolution4"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb30"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -771,7 +771,7 @@ <h3 class="callout-title">Appending to a file<a class="anchor" aria-label="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution5" aria-expanded="false" aria-controls="collapseSolution5"> <h4 class="accordion-header" id="headingSolution5">Show me the solution</h4> </button> -<div id="collapseSolution5" class="accordion-collapse collapse" data-bs-parent="#accordionSolution5" aria-labelledby="headingSolution5"> +<div id="collapseSolution5" class="accordion-collapse collapse" aria-labelledby="headingSolution5" data-bs-parent="#accordionSolution5"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb31"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -804,7 +804,7 @@ <h3 class="callout-title">Counting the number of words<a class="anchor" aria-lab <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution6" aria-expanded="false" aria-controls="collapseSolution6"> <h4 class="accordion-header" id="headingSolution6">Show me the solution</h4> </button> -<div id="collapseSolution6" class="accordion-collapse collapse" data-bs-parent="#accordionSolution6" aria-labelledby="headingSolution6"> +<div id="collapseSolution6" class="accordion-collapse collapse" aria-labelledby="headingSolution6" data-bs-parent="#accordionSolution6"> <div class="accordion-body"> <p>From <code>man wc</code>, you will see that there is a <code>-w</code> flag to print the number of words:</p> @@ -1022,7 +1022,7 @@ <h3 class="callout-title">Automatically adding a date prefix<a class="anchor" ar <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution7" aria-expanded="false" aria-controls="collapseSolution7"> <h4 class="accordion-header" id="headingSolution7">Show me the solution</h4> </button> -<div id="collapseSolution7" class="accordion-collapse collapse" data-bs-parent="#accordionSolution7" aria-labelledby="headingSolution7"> +<div id="collapseSolution7" class="accordion-collapse collapse" aria-labelledby="headingSolution7" data-bs-parent="#accordionSolution7"> <div class="accordion-body"> <p>Using <code>date --help</code> (on Git Bash for Windows or Linux) or <code>man date</code> (on macOS or Linux) will show you that the @@ -1099,7 +1099,7 @@ <h3 class="callout-title">Case sensitive search<a class="anchor" aria-label="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution8" aria-expanded="false" aria-controls="collapseSolution8"> <h4 class="accordion-header" id="headingSolution8">Show me the solution</h4> </button> -<div id="collapseSolution8" class="accordion-collapse collapse" data-bs-parent="#accordionSolution8" aria-labelledby="headingSolution8"> +<div id="collapseSolution8" class="accordion-collapse collapse" aria-labelledby="headingSolution8" data-bs-parent="#accordionSolution8"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb52"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1129,7 +1129,7 @@ <h3 class="callout-title">Case sensitive search in select files<a class="anchor" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution9" aria-expanded="false" aria-controls="collapseSolution9"> <h4 class="accordion-header" id="headingSolution9">Show me the solution</h4> </button> -<div id="collapseSolution9" class="accordion-collapse collapse" data-bs-parent="#accordionSolution9" aria-labelledby="headingSolution9"> +<div id="collapseSolution9" class="accordion-collapse collapse" aria-labelledby="headingSolution9" data-bs-parent="#accordionSolution9"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb53"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1159,7 +1159,7 @@ <h3 class="callout-title">Count words (case sensitive)<a class="anchor" aria-lab <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution10" aria-expanded="false" aria-controls="collapseSolution10"> <h4 class="accordion-header" id="headingSolution10">Show me the solution</h4> </button> -<div id="collapseSolution10" class="accordion-collapse collapse" data-bs-parent="#accordionSolution10" aria-labelledby="headingSolution10"> +<div id="collapseSolution10" class="accordion-collapse collapse" aria-labelledby="headingSolution10" data-bs-parent="#accordionSolution10"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb54"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1189,7 +1189,7 @@ <h3 class="callout-title">Count words (case insensitive)<a class="anchor" aria-l <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution11" aria-expanded="false" aria-controls="collapseSolution11"> <h4 class="accordion-header" id="headingSolution11">Show me the solution</h4> </button> -<div id="collapseSolution11" class="accordion-collapse collapse" data-bs-parent="#accordionSolution11" aria-labelledby="headingSolution11"> +<div id="collapseSolution11" class="accordion-collapse collapse" aria-labelledby="headingSolution11" data-bs-parent="#accordionSolution11"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb55"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1219,7 +1219,7 @@ <h3 class="callout-title">Case insensitive search in select files<a class="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution12" aria-expanded="false" aria-controls="collapseSolution12"> <h4 class="accordion-header" id="headingSolution12">Show me the solution</h4> </button> -<div id="collapseSolution12" class="accordion-collapse collapse" data-bs-parent="#accordionSolution12" aria-labelledby="headingSolution12"> +<div id="collapseSolution12" class="accordion-collapse collapse" aria-labelledby="headingSolution12" data-bs-parent="#accordionSolution12"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb56"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1250,7 +1250,7 @@ <h3 class="callout-title">Case insensitive search in select files (whole <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution13" aria-expanded="false" aria-controls="collapseSolution13"> <h4 class="accordion-header" id="headingSolution13">Show me the solution</h4> </button> -<div id="collapseSolution13" class="accordion-collapse collapse" data-bs-parent="#accordionSolution13" aria-labelledby="headingSolution13"> +<div id="collapseSolution13" class="accordion-collapse collapse" aria-labelledby="headingSolution13" data-bs-parent="#accordionSolution13"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb57"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1283,7 +1283,7 @@ <h3 class="callout-title">Searching with regular expressions<a class="anchor" ar <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution14" aria-expanded="false" aria-controls="collapseSolution14"> <h4 class="accordion-header" id="headingSolution14">Show me the solution</h4> </button> -<div id="collapseSolution14" class="accordion-collapse collapse" data-bs-parent="#accordionSolution14" aria-labelledby="headingSolution14"> +<div id="collapseSolution14" class="accordion-collapse collapse" aria-labelledby="headingSolution14" data-bs-parent="#accordionSolution14"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb58"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1330,7 +1330,7 @@ <h3 class="callout-title">Finding unique values<a class="anchor" aria-label="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution15" aria-expanded="false" aria-controls="collapseSolution15"> <h4 class="accordion-header" id="headingSolution15">Show me the solution</h4> </button> -<div id="collapseSolution15" class="accordion-collapse collapse" data-bs-parent="#accordionSolution15" aria-labelledby="headingSolution15"> +<div id="collapseSolution15" class="accordion-collapse collapse" aria-labelledby="headingSolution15" data-bs-parent="#accordionSolution15"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb60"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1425,7 +1425,7 @@ <h3 class="callout-title">Why are the variables double-quoted here?<a class="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution16" aria-expanded="false" aria-controls="collapseSolution16"> <h4 class="accordion-header" id="headingSolution16">Solutions</h4> </button> -<div id="collapseSolution16" class="accordion-collapse collapse" data-bs-parent="#accordionSolution16" aria-labelledby="headingSolution16"> +<div id="collapseSolution16" class="accordion-collapse collapse" aria-labelledby="headingSolution16" data-bs-parent="#accordionSolution16"> <div class="accordion-body"> <ol style="list-style-type: lower-alpha"><li><p>Because we are explicitly listing the names after <code>in</code>, and those contain no white-space. However, for @@ -1506,7 +1506,7 @@ <h3 id="now-your-turn">Now your turn<a class="anchor" aria-label="anchor" href=" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution17" aria-expanded="false" aria-controls="collapseSolution17"> <h4 class="accordion-header" id="headingSolution17">Show me the solution</h4> </button> -<div id="collapseSolution17" class="accordion-collapse collapse" data-bs-parent="#accordionSolution17" aria-labelledby="headingSolution17"> +<div id="collapseSolution17" class="accordion-collapse collapse" aria-labelledby="headingSolution17" data-bs-parent="#accordionSolution17"> <div class="accordion-body"> <p>First, let’s see where our desired columns are:</p> <div class="codewrapper sourceCode" id="cb68"> @@ -1613,7 +1613,7 @@ <h3 class="callout-title">Key Points<a class="anchor" aria-label="anchor" href=" "url": "https://librarycarpentry.github.io/lc-shell/instructor/05-counting-mining.html", "identifier": "https://librarycarpentry.github.io/lc-shell/instructor/05-counting-mining.html", "dateCreated": "2018-04-12", - "dateModified": "2024-02-23", + "dateModified": "2024-05-07", "datePublished": "2024-05-07" } diff --git a/instructor/aio.html b/instructor/aio.html index 63e2fb71..65db343d 100644 --- a/instructor/aio.html +++ b/instructor/aio.html @@ -1531,7 +1531,7 @@ <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution1" aria-expanded="false" aria-controls="collapseSolution1"> <h4 class="accordion-header" id="headingSolution1">Show me the solution</h4> </button> -<div id="collapseSolution1" class="accordion-collapse collapse" data-bs-parent="#accordionSolution1" aria-labelledby="headingSolution1"> +<div id="collapseSolution1" class="accordion-collapse collapse" aria-labelledby="headingSolution1" data-bs-parent="#accordionSolution1"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb6"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -1607,7 +1607,7 @@ <h3 class="callout-title">Key Points<a class="anchor" aria-label="anchor" href=" </div> </section></section><section id="aio-05-counting-mining"><p>Content from <a href="05-counting-mining.html">Counting and mining with the shell</a></p> <hr> -<p>Last updated on 2024-02-23 | +<p>Last updated on 2024-05-07 | <a href="https://github.com/librarycarpentry/lc-shell/edit/main/episodes/05-counting-mining.md" class="external-link">Edit this page <i aria-hidden="true" data-feather="edit"></i></a></p> <p>Estimated time: <i aria-hidden="true" data-feather="clock"></i> 90 minutes</p> @@ -1686,8 +1686,8 @@ <h3 class="code-label">OUTPUT<i aria-hidden="true" data-feather="chevron-left">< </h3> <pre class="output" tabindex="0"><code>/Users/riley/Desktop/shell-lesson</code></pre> </div> -<p>And let’s just check what files are in the directory and how large -they are with <code>ls -lhS</code>:</p> +<p>And let’s check what files are in the directory and how large they +are with <code>ls -lhS</code>:</p> <div class="codewrapper sourceCode" id="cb4"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> </h3> @@ -1721,15 +1721,15 @@ <h3 class="callout-title">CSV and TSV Files<a class="anchor" aria-label="anchor" <div class="callout-content"> <p>CSV (Comma-separated values) is a common plain text format for storing tabular data, where each record occupies one line and the values -are separated by commas. TSV (Tab-separated values) is just the same -except that values are separated by tabs rather than commas. -Confusingly, CSV is sometimes used to refer to both CSV, TSV and -variations of them. The simplicity of the formats make them great for -exchange and archival. They are not bound to a specific program (unlike -Excel files, say, there is no <code>CSV</code> program, just lots and -lots of programs that support the format, including Excel by the way.), -and you wouldn’t have any problems opening a 40 year old file today if -you came across one.</p> +are separated by commas. TSV (Tab-separated values) is the same except +that values are separated by tabs rather than commas. Confusingly, CSV +is sometimes used to refer to both CSV, TSV and variations of them. The +simplicity of the formats make them great for exchange and archival. +They are not bound to a specific program (unlike Excel files, say, there +is no <code>CSV</code> program, just lots and lots of programs that +support the format, including Excel by the way.), and you wouldn’t have +any problems opening a 40 year old file today if you came across +one.</p> </div> </div> </div> @@ -1787,7 +1787,7 @@ <h3 class="code-label">OUTPUT<i aria-hidden="true" data-feather="chevron-left">< <p>The first three columns contains the number of lines, words and bytes.</p> <p>If we only have a handful of files to compare, it might be faster or -more convenient to just check with Microsoft Excel, OpenRefine or your +more convenient to check with Microsoft Excel, OpenRefine or your favourite text editor, but when we have tens, hundreds or thousands of documents, the Unix shell has a clear speed advantage. The real power of the shell comes from being able to combine commands and automate tasks, @@ -1953,10 +1953,10 @@ <h3 class="callout-title">Adding another pipe<a class="anchor" aria-label="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution1" aria-expanded="false" aria-controls="collapseSolution1"> <h4 class="accordion-header" id="headingSolution1">Show me the solution</h4> </button> -<div id="collapseSolution1" class="accordion-collapse collapse" data-bs-parent="#accordionSolution1" aria-labelledby="headingSolution1"> +<div id="collapseSolution1" class="accordion-collapse collapse" aria-labelledby="headingSolution1" data-bs-parent="#accordionSolution1"> <div class="accordion-body"> -<p>The <code>cat</code> command just outputs whatever it gets as input, -so you get exactly the same output from</p> +<p>The <code>cat</code> command outputs whatever it gets as input, so +you get exactly the same output from</p> <div class="codewrapper sourceCode" id="cb24"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> </h3> @@ -2010,7 +2010,7 @@ <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution2" aria-expanded="false" aria-controls="collapseSolution2"> <h4 class="accordion-header" id="headingSolution2">Show me the solution</h4> </button> -<div id="collapseSolution2" class="accordion-collapse collapse" data-bs-parent="#accordionSolution2" aria-labelledby="headingSolution2"> +<div id="collapseSolution2" class="accordion-collapse collapse" aria-labelledby="headingSolution2" data-bs-parent="#accordionSolution2"> <div class="accordion-body"> <p>Here we use the <code>wc</code> command with the <code>-w</code> (word) flag on all <code>tsv</code> files, <code>sort</code> them and @@ -2045,7 +2045,7 @@ <h3 class="callout-title">Counting number of files<a class="anchor" aria-label=" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution3" aria-expanded="false" aria-controls="collapseSolution3"> <h4 class="accordion-header" id="headingSolution3">Show me the solution</h4> </button> -<div id="collapseSolution3" class="accordion-collapse collapse" data-bs-parent="#accordionSolution3" aria-labelledby="headingSolution3"> +<div id="collapseSolution3" class="accordion-collapse collapse" aria-labelledby="headingSolution3" data-bs-parent="#accordionSolution3"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb29"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2075,7 +2075,7 @@ <h3 class="callout-title">Writing to files<a class="anchor" aria-label="anchor" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution4" aria-expanded="false" aria-controls="collapseSolution4"> <h4 class="accordion-header" id="headingSolution4">Show me the solution</h4> </button> -<div id="collapseSolution4" class="accordion-collapse collapse" data-bs-parent="#accordionSolution4" aria-labelledby="headingSolution4"> +<div id="collapseSolution4" class="accordion-collapse collapse" aria-labelledby="headingSolution4" data-bs-parent="#accordionSolution4"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb30"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2110,7 +2110,7 @@ <h3 class="callout-title">Appending to a file<a class="anchor" aria-label="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution5" aria-expanded="false" aria-controls="collapseSolution5"> <h4 class="accordion-header" id="headingSolution5">Show me the solution</h4> </button> -<div id="collapseSolution5" class="accordion-collapse collapse" data-bs-parent="#accordionSolution5" aria-labelledby="headingSolution5"> +<div id="collapseSolution5" class="accordion-collapse collapse" aria-labelledby="headingSolution5" data-bs-parent="#accordionSolution5"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb31"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2143,7 +2143,7 @@ <h3 class="callout-title">Counting the number of words<a class="anchor" aria-lab <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution6" aria-expanded="false" aria-controls="collapseSolution6"> <h4 class="accordion-header" id="headingSolution6">Show me the solution</h4> </button> -<div id="collapseSolution6" class="accordion-collapse collapse" data-bs-parent="#accordionSolution6" aria-labelledby="headingSolution6"> +<div id="collapseSolution6" class="accordion-collapse collapse" aria-labelledby="headingSolution6" data-bs-parent="#accordionSolution6"> <div class="accordion-body"> <p>From <code>man wc</code>, you will see that there is a <code>-w</code> flag to print the number of words:</p> @@ -2362,7 +2362,7 @@ <h3 class="callout-title">Automatically adding a date prefix<a class="anchor" ar <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution7" aria-expanded="false" aria-controls="collapseSolution7"> <h4 class="accordion-header" id="headingSolution7">Show me the solution</h4> </button> -<div id="collapseSolution7" class="accordion-collapse collapse" data-bs-parent="#accordionSolution7" aria-labelledby="headingSolution7"> +<div id="collapseSolution7" class="accordion-collapse collapse" aria-labelledby="headingSolution7" data-bs-parent="#accordionSolution7"> <div class="accordion-body"> <p>Using <code>date --help</code> (on Git Bash for Windows or Linux) or <code>man date</code> (on macOS or Linux) will show you that the @@ -2439,7 +2439,7 @@ <h3 class="callout-title">Case sensitive search<a class="anchor" aria-label="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution8" aria-expanded="false" aria-controls="collapseSolution8"> <h4 class="accordion-header" id="headingSolution8">Show me the solution</h4> </button> -<div id="collapseSolution8" class="accordion-collapse collapse" data-bs-parent="#accordionSolution8" aria-labelledby="headingSolution8"> +<div id="collapseSolution8" class="accordion-collapse collapse" aria-labelledby="headingSolution8" data-bs-parent="#accordionSolution8"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb52"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2469,7 +2469,7 @@ <h3 class="callout-title">Case sensitive search in select files<a class="anchor" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution9" aria-expanded="false" aria-controls="collapseSolution9"> <h4 class="accordion-header" id="headingSolution9">Show me the solution</h4> </button> -<div id="collapseSolution9" class="accordion-collapse collapse" data-bs-parent="#accordionSolution9" aria-labelledby="headingSolution9"> +<div id="collapseSolution9" class="accordion-collapse collapse" aria-labelledby="headingSolution9" data-bs-parent="#accordionSolution9"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb53"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2499,7 +2499,7 @@ <h3 class="callout-title">Count words (case sensitive)<a class="anchor" aria-lab <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution10" aria-expanded="false" aria-controls="collapseSolution10"> <h4 class="accordion-header" id="headingSolution10">Show me the solution</h4> </button> -<div id="collapseSolution10" class="accordion-collapse collapse" data-bs-parent="#accordionSolution10" aria-labelledby="headingSolution10"> +<div id="collapseSolution10" class="accordion-collapse collapse" aria-labelledby="headingSolution10" data-bs-parent="#accordionSolution10"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb54"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2529,7 +2529,7 @@ <h3 class="callout-title">Count words (case insensitive)<a class="anchor" aria-l <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution11" aria-expanded="false" aria-controls="collapseSolution11"> <h4 class="accordion-header" id="headingSolution11">Show me the solution</h4> </button> -<div id="collapseSolution11" class="accordion-collapse collapse" data-bs-parent="#accordionSolution11" aria-labelledby="headingSolution11"> +<div id="collapseSolution11" class="accordion-collapse collapse" aria-labelledby="headingSolution11" data-bs-parent="#accordionSolution11"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb55"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2559,7 +2559,7 @@ <h3 class="callout-title">Case insensitive search in select files<a class="ancho <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution12" aria-expanded="false" aria-controls="collapseSolution12"> <h4 class="accordion-header" id="headingSolution12">Show me the solution</h4> </button> -<div id="collapseSolution12" class="accordion-collapse collapse" data-bs-parent="#accordionSolution12" aria-labelledby="headingSolution12"> +<div id="collapseSolution12" class="accordion-collapse collapse" aria-labelledby="headingSolution12" data-bs-parent="#accordionSolution12"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb56"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2590,7 +2590,7 @@ <h3 class="callout-title">Case insensitive search in select files (whole <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution13" aria-expanded="false" aria-controls="collapseSolution13"> <h4 class="accordion-header" id="headingSolution13">Show me the solution</h4> </button> -<div id="collapseSolution13" class="accordion-collapse collapse" data-bs-parent="#accordionSolution13" aria-labelledby="headingSolution13"> +<div id="collapseSolution13" class="accordion-collapse collapse" aria-labelledby="headingSolution13" data-bs-parent="#accordionSolution13"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb57"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2623,7 +2623,7 @@ <h3 class="callout-title">Searching with regular expressions<a class="anchor" ar <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution14" aria-expanded="false" aria-controls="collapseSolution14"> <h4 class="accordion-header" id="headingSolution14">Show me the solution</h4> </button> -<div id="collapseSolution14" class="accordion-collapse collapse" data-bs-parent="#accordionSolution14" aria-labelledby="headingSolution14"> +<div id="collapseSolution14" class="accordion-collapse collapse" aria-labelledby="headingSolution14" data-bs-parent="#accordionSolution14"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb58"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2670,7 +2670,7 @@ <h3 class="callout-title">Finding unique values<a class="anchor" aria-label="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution15" aria-expanded="false" aria-controls="collapseSolution15"> <h4 class="accordion-header" id="headingSolution15">Show me the solution</h4> </button> -<div id="collapseSolution15" class="accordion-collapse collapse" data-bs-parent="#accordionSolution15" aria-labelledby="headingSolution15"> +<div id="collapseSolution15" class="accordion-collapse collapse" aria-labelledby="headingSolution15" data-bs-parent="#accordionSolution15"> <div class="accordion-body"> <div class="codewrapper sourceCode" id="cb60"> <h3 class="code-label">BASH<i aria-hidden="true" data-feather="chevron-left"></i><i aria-hidden="true" data-feather="chevron-right"></i> @@ -2770,7 +2770,7 @@ <h3 class="callout-title">Why are the variables double-quoted here?<a class="anc <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution16" aria-expanded="false" aria-controls="collapseSolution16"> <h4 class="accordion-header" id="headingSolution16">Solutions</h4> </button> -<div id="collapseSolution16" class="accordion-collapse collapse" data-bs-parent="#accordionSolution16" aria-labelledby="headingSolution16"> +<div id="collapseSolution16" class="accordion-collapse collapse" aria-labelledby="headingSolution16" data-bs-parent="#accordionSolution16"> <div class="accordion-body"> <ol style="list-style-type: lower-alpha"> <li><p>Because we are explicitly listing the names after @@ -2854,7 +2854,7 @@ <h3 id="now-your-turn">Now your turn<a class="anchor" aria-label="anchor" href=" <button class="accordion-button solution-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSolution17" aria-expanded="false" aria-controls="collapseSolution17"> <h4 class="accordion-header" id="headingSolution17">Show me the solution</h4> </button> -<div id="collapseSolution17" class="accordion-collapse collapse" data-bs-parent="#accordionSolution17" aria-labelledby="headingSolution17"> +<div id="collapseSolution17" class="accordion-collapse collapse" aria-labelledby="headingSolution17" data-bs-parent="#accordionSolution17"> <div class="accordion-body"> <p>First, let’s see where our desired columns are:</p> <div class="codewrapper sourceCode" id="cb68"> diff --git a/md5sum.txt b/md5sum.txt index a5367776..5f3b6d9d 100644 --- a/md5sum.txt +++ b/md5sum.txt @@ -8,7 +8,7 @@ "episodes/02-navigating-the-filesystem.md" "a55e2785748efba647329295a246802c" "site/built/02-navigating-the-filesystem.md" "2024-05-02" "episodes/03-working-with-files-and-folders.md" "f28760ce8c1c6e3b96c8b6ccacc55772" "site/built/03-working-with-files-and-folders.md" "2024-02-23" "episodes/04-loops.md" "ef86d9f8b71733dea97b44a886391bdd" "site/built/04-loops.md" "2024-02-23" -"episodes/05-counting-mining.md" "f61fde3e769614d41d8b22e09f38d1e7" "site/built/05-counting-mining.md" "2024-02-23" +"episodes/05-counting-mining.md" "d287fe1d39afedc4a4448a9b4427aafc" "site/built/05-counting-mining.md" "2024-05-07" "episodes/06-free-text.md" "143b9518631bcf5b114d1f432e5a9c25" "site/built/06-free-text.md" "2023-05-08" "instructors/instructor-notes.md" "c317e03b34390725b50f49df1bf943b1" "site/built/instructor-notes.md" "2024-02-23" "learners/discuss.md" "498cf8840b7e5bb0897f7c15af83c052" "site/built/discuss.md" "2023-08-29" diff --git a/pkgdown.yml b/pkgdown.yml index c6505aac..176bd155 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -2,5 +2,5 @@ pandoc: 3.1.11 pkgdown: 2.0.9 pkgdown_sha: ~ articles: {} -last_built: 2024-05-07T00:08Z +last_built: 2024-05-07T14:58Z