diff --git a/lorem/ad.txt b/lorem/ad.txt new file mode 100644 index 0000000..8f10f1e --- /dev/null +++ b/lorem/ad.txt @@ -0,0 +1,2 @@ +et + diff --git a/lorem/lorem-copy/sed.txt b/lorem/lorem-copy/sed.txt new file mode 100644 index 0000000..7d11031 --- /dev/null +++ b/lorem/lorem-copy/sed.txt @@ -0,0 +1,11 @@ +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?Home homini lupus. +\nHome homini lupus. +nHome homini lupus. diff --git a/lorem/sed.txt b/lorem/sed.txt index 84ecd65..7d11031 100644 --- a/lorem/sed.txt +++ b/lorem/sed.txt @@ -6,4 +6,6 @@ Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, ad 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? \ No newline at end of file +vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?Home homini lupus. +\nHome homini lupus. +nHome homini lupus. diff --git a/solutions.ipynb b/solutions.ipynb index 10ae56f..4fa7592 100644 --- a/solutions.ipynb +++ b/solutions.ipynb @@ -22,7 +22,8 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:echo \"Hello World\"\n", + "Hello World\n" ] }, { @@ -38,7 +39,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: mkdir submissionfolder" ] }, { @@ -54,7 +55,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: rm -r submissionfolder" ] }, { @@ -70,7 +71,8 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: echo \"Hello World\"\n", + "Hello World\n" ] }, { @@ -86,7 +88,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: mkdir new_dir" ] }, { @@ -102,7 +104,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: rm -r new_dir" ] }, { @@ -118,7 +120,12 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: \n", + "1. cd lab-bash\n", + "2. cd lorem\n", + "mkdir lorem-copy\n", + "3. cp sed.txt\n", + "cp sed.txt lorem-copy/" ] }, { @@ -134,7 +141,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "1. cd lorem \n", + "2. cp ~/at.txt/lorem.txt" ] }, { @@ -150,7 +159,10 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: \n", + "1. cd lab-bash\n", + "2. cd lorem\n", + "3. cat sed.txt" ] }, { @@ -166,7 +178,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "1. cd lorem \n", + "2. cat at.txt lorem.txt" ] }, { @@ -182,7 +196,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "1. cd lorem \n", + "2. head -3 lorem-copy/sed.txt" ] }, { @@ -198,7 +214,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "1. cd lorem \n", + "2. tail -3 lorem-copy/sed.txt" ] }, { @@ -214,7 +232,8 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "1. echo \"nHome homini lupus.\" >> lorem-copy/sed.txt" ] }, { @@ -230,7 +249,8 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "1. tail -3 lorem-copy/sed.txt" ] }, { @@ -246,7 +266,8 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "sed 's/et/ET/' lorem/lorem-copy/at.txt" ] }, { @@ -262,7 +283,8 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "whoami" ] }, { @@ -278,7 +300,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: pwd" ] }, { @@ -294,7 +316,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: ls *.txt" ] }, { @@ -310,7 +332,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: wc -l sed.txt" ] }, { @@ -326,7 +348,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: ls lorem*/ | wc -l\n" ] }, { @@ -342,7 +364,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: wc -l 'et' ad.txt" ] }, { @@ -358,7 +380,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: grep -o 'et' ad.txt | wc -l" ] }, { @@ -374,7 +396,7 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: grep -o 'et' lorem/lorem-copy | wc -l" ] }, { @@ -397,7 +419,8 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "name=hugo" ] }, {