From ebf60e84df5f964ab2b515154e4445c8523d0f42 Mon Sep 17 00:00:00 2001 From: Nerea Larrachea Date: Mon, 3 Oct 2022 17:46:40 +0200 Subject: [PATCH 1/2] finished the assigment --- file | 1 + lorem-copy/at.txt | 10 ++++++++++ lorem-copy/lorem.txt | 4 ++++ lorem-copy/sed.txt | 9 +++++++++ 4 files changed, 24 insertions(+) create mode 100644 file create mode 100644 lorem-copy/at.txt create mode 100644 lorem-copy/lorem.txt create mode 100644 lorem-copy/sed.txt diff --git a/file b/file new file mode 100644 index 0000000..557db03 --- /dev/null +++ b/file @@ -0,0 +1 @@ +Hello World diff --git a/lorem-copy/at.txt b/lorem-copy/at.txt new file mode 100644 index 0000000..4b7e1e4 --- /dev/null +++ b/lorem-copy/at.txt @@ -0,0 +1,10 @@ +At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum +deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non +provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. +Et harum quidem rerum facilis est et expedita distinctio. +Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod +maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. +Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet +ut et voluptates repudiandae sint et molestiae non recusandae. +Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores +alias consequatur aut perferendis doloribus asperiores repellat \ No newline at end of file diff --git a/lorem-copy/lorem.txt b/lorem-copy/lorem.txt new file mode 100644 index 0000000..3d79369 --- /dev/null +++ b/lorem-copy/lorem.txt @@ -0,0 +1,4 @@ +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. +Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. +Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. +Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \ No newline at end of file diff --git a/lorem-copy/sed.txt b/lorem-copy/sed.txt new file mode 100644 index 0000000..95404d8 --- /dev/null +++ b/lorem-copy/sed.txt @@ -0,0 +1,9 @@ +Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, +totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. +Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, +sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. +Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, +sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. +Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, +nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, +vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?Homo homini lupus From e94b127bcef51f9c2d366bda7ae784f41812a42a Mon Sep 17 00:00:00 2001 From: Nerea Larrachea Date: Tue, 4 Oct 2022 11:42:32 +0200 Subject: [PATCH 2/2] uploaded the right doc --- solutions.ipynb | 114 +++++++++++------------------------------------- 1 file changed, 25 insertions(+), 89 deletions(-) diff --git a/solutions.ipynb b/solutions.ipynb index 10ae56f..acb801a 100644 --- a/solutions.ipynb +++ b/solutions.ipynb @@ -9,22 +9,6 @@ "### Exercises" ] }, - { - "cell_type": "markdown", - "metadata": { - "lang": "en" - }, - "source": [ - "#### Print Hello World to console." - ] - }, - { - "cell_type": "raw", - "metadata": {}, - "source": [ - "The command:" - ] - }, { "cell_type": "markdown", "metadata": { @@ -38,7 +22,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: mkdir new_dir" ] }, { @@ -54,55 +38,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "lang": "en" - }, - "source": [ - "#### Print Hello World to console." - ] - }, - { - "cell_type": "raw", - "metadata": {}, - "source": [ - "The command:" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "lang": "en" - }, - "source": [ - "#### Create a new directory called new_dir." - ] - }, - { - "cell_type": "raw", - "metadata": {}, - "source": [ - "The command:" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "lang": "en" - }, - "source": [ - "#### Delete that directory." - ] - }, - { - "cell_type": "raw", - "metadata": {}, - "source": [ - "The command:" + "The command: rm -r new_dir" ] }, { @@ -118,7 +54,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: cp sed.txt /Users/narea/lab-bash/lorem-copy" ] }, { @@ -134,7 +70,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: cp at.txt lorem.txt /Users/narea/lab-bash/lorem-copy" ] }, { @@ -150,7 +86,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: cat sed.txt" ] }, { @@ -166,7 +102,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: cat at.txt lorem.txt" ] }, { @@ -182,7 +118,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: head -n 3 sed.txt" ] }, { @@ -198,7 +134,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: tail -n 3 sed.txt" ] }, { @@ -214,7 +150,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: echo \"Homo homini lupus\" >> sed.txt" ] }, { @@ -230,7 +166,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: tail -n 3 sed.txt" ] }, { @@ -246,7 +182,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: sed 's/et/ET/' at.txt" ] }, { @@ -262,7 +198,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: whoami" ] }, { @@ -278,7 +214,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: pwd" ] }, { @@ -294,7 +230,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: ls *.txt" ] }, { @@ -310,7 +246,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: wc sed.txt" ] }, { @@ -326,7 +262,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: ls | grep 'lorem' | wc -l" ] }, { @@ -342,7 +278,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: grep -n et at.txt" ] }, { @@ -358,7 +294,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: grep -c et at.txt" ] }, { @@ -374,7 +310,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: grep -c et *txt" ] }, { @@ -397,7 +333,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: name=nerea" ] }, { @@ -413,7 +349,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: echo $name" ] }, { @@ -429,7 +365,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: mkdir name" ] }, { @@ -445,7 +381,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: rm -r name" ] }, { @@ -570,7 +506,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "Python 3", "language": "python", "name": "python3" }, @@ -584,7 +520,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.12" + "version": "3.8.5" }, "nbTranslate": { "displayLangs": [