diff --git a/solutions.ipynb b/solutions.ipynb index 10ae56f..367ed04 100644 --- a/solutions.ipynb +++ b/solutions.ipynb @@ -22,7 +22,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "echo \"Hello World\"" ] }, { @@ -38,7 +40,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "mkdir new_dir" ] }, { @@ -54,7 +58,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "rm -r new_dir" ] }, { @@ -70,7 +76,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "echo \"Hello World\"" ] }, { @@ -86,7 +94,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: \n", + "\n", + "mkdir new_dir" ] }, { @@ -102,7 +112,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command: \n", + "\n", + "rm -r new_dir" ] }, { @@ -118,7 +130,10 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "mkdir lorem-copy\n", + "cp lorem/sed.txt lorem-copy" ] }, { @@ -134,7 +149,13 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "cp lorem/at.txt lorem-copy ; cp lorem/lorem.txt lorem-copy\n", + "\n", + "OR\n", + "\n", + "cp lorem/{at,lorem}.txt lorem-copy" ] }, { @@ -150,7 +171,10 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "cd lorem\n", + "cat sed.txt" ] }, { @@ -166,7 +190,10 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "cd lorem\n", + "cat {at,lorem}.txt" ] }, { @@ -182,7 +209,11 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "cd ..\n", + "cd lorem_copy\n", + "head --lines=3 sed.txt" ] }, { @@ -198,7 +229,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "tail --lines=3 sed.txt" ] }, { @@ -214,7 +247,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "echo \"Homo homini lupus\" >> sed.txt" ] }, { @@ -230,7 +265,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "tail --lines=3 sed.txt" ] }, { @@ -246,7 +283,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "sed -e -i \"s/et/ET/g\" at.txt" ] }, { @@ -262,7 +301,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "whoami" ] }, { @@ -278,7 +319,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "pwd" ] }, { @@ -294,7 +337,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "cd lorem ; ls *.txt" ] }, { @@ -310,7 +355,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "cd lorem ; wc -l sed.txt" ] }, { @@ -326,7 +373,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "find . -name \"lorem*\" -type f | wc -l" ] }, { @@ -342,7 +391,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "cd lorem ; grep --color=always \"et\" at.txt" ] }, { @@ -358,7 +409,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "cd lorem ; grep --color=always \"et*\" at.txt | wc -l" ] }, { @@ -374,7 +427,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "cd lorem-copy ; grep -roh \"et\" . | wc -w" ] }, { @@ -397,7 +452,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "name=Carles" ] }, { @@ -413,7 +470,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "echo=$name" ] }, { @@ -429,7 +488,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "mkdir $name" ] }, { @@ -445,7 +506,9 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "rm -r $name" ] }, { @@ -465,7 +528,15 @@ "cell_type": "raw", "metadata": {}, "source": [ - "The command:" + "The command:\n", + "\n", + "for i in lorem/*\n", + "do\n", + " echo $i\n", + " wc -m $i\n", + "done\n", + "\n", + "## NOT FINISHED" ] }, {