From cf4f96d7ee010d2ce3a65c7e323b96d9c25be426 Mon Sep 17 00:00:00 2001 From: Marc Calvente Date: Mon, 3 Oct 2022 17:48:35 +0200 Subject: [PATCH] my first commit --- lorem/lorem-copy/at.txt | 10 ++++ lorem/lorem-copy/lorem.txt | 4 ++ lorem/lorem-copy/sed.txt | 10 ++++ solutions.ipynb | 104 +++++++++++-------------------------- 4 files changed, 55 insertions(+), 73 deletions(-) create mode 100644 lorem/lorem-copy/at.txt create mode 100644 lorem/lorem-copy/lorem.txt create mode 100644 lorem/lorem-copy/sed.txt diff --git a/lorem/lorem-copy/at.txt b/lorem/lorem-copy/at.txt new file mode 100644 index 0000000..4b7e1e4 --- /dev/null +++ b/lorem/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/lorem-copy/lorem.txt b/lorem/lorem-copy/lorem.txt new file mode 100644 index 0000000..3d79369 --- /dev/null +++ b/lorem/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/lorem-copy/sed.txt b/lorem/lorem-copy/sed.txt new file mode 100644 index 0000000..8fedda2 --- /dev/null +++ b/lorem/lorem-copy/sed.txt @@ -0,0 +1,10 @@ +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? +\nHomo homini lupus diff --git a/solutions.ipynb b/solutions.ipynb index 10ae56f..2346a82 100644 --- a/solutions.ipynb +++ b/solutions.ipynb @@ -22,7 +22,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: echo \"hello world\"" ] }, { @@ -38,7 +38,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: mkdir new_dir" ] }, { @@ -54,55 +54,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 new_dir -rf" ] }, { @@ -118,7 +70,11 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: \n", + "\n", + "cd lorem\n", + "mkdir lorem-copy\n", + "cp sed.txt lorem-copy/" ] }, { @@ -134,7 +90,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: cp at.txt lorem-copy/;cp lorem.txt lorem-copy/" ] }, { @@ -150,7 +106,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: cat sed.txt" ] }, { @@ -166,7 +122,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: cat at.txt lorem.txt" ] }, { @@ -182,7 +138,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: head -n 3 lorem-copy/sed.txt" ] }, { @@ -198,7 +154,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: tail -n 3 lorem-copy/sed.txt" ] }, { @@ -214,7 +170,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: echo \"\\nHomo homini lupus\" >> lorem-copy/sed.txt" ] }, { @@ -230,7 +186,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: tail -n 3 lorem-copy/sed.txt" ] }, { @@ -246,7 +202,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: sed 's/et/ET/' lorem-copy/at.txt" ] }, { @@ -262,7 +218,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: whoami" ] }, { @@ -278,7 +234,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: pwd" ] }, { @@ -294,7 +250,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: ls *.txt" ] }, { @@ -310,7 +266,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: wc sed.txt" ] }, { @@ -326,7 +282,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: find . -name \"lorem*\" -type f | wc -l\n", + "\n", + "*Not counting the directories, only the files." ] }, { @@ -342,7 +300,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: grep --color=always 'et' ./at.txt" ] }, { @@ -358,7 +316,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: grep -o 'et' ./at.txt | wc -l" ] }, { @@ -374,7 +332,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: grep -o 'et' lorem-copy/*.txt | wc -l" ] }, { @@ -397,7 +355,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: myname=marc" ] }, { @@ -413,7 +371,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: echo $myname" ] }, { @@ -429,7 +387,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: mkdir $myname" ] }, { @@ -445,7 +403,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: rm $myname -rf" ] }, { @@ -465,7 +423,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: " ] }, {