Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 99 additions & 28 deletions solutions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"echo \"Hello World\""
]
},
{
Expand All @@ -38,7 +40,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"mkdir new_dir"
]
},
{
Expand All @@ -54,7 +58,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"rm -r new_dir"
]
},
{
Expand All @@ -70,7 +76,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"echo \"Hello World\""
]
},
{
Expand All @@ -86,7 +94,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: \n",
"\n",
"mkdir new_dir"
]
},
{
Expand All @@ -102,7 +112,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: \n",
"\n",
"rm -r new_dir"
]
},
{
Expand All @@ -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"
]
},
{
Expand All @@ -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"
]
},
{
Expand All @@ -150,7 +171,10 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"cd lorem\n",
"cat sed.txt"
]
},
{
Expand All @@ -166,7 +190,10 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"cd lorem\n",
"cat {at,lorem}.txt"
]
},
{
Expand All @@ -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"
]
},
{
Expand All @@ -198,7 +229,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"tail --lines=3 sed.txt"
]
},
{
Expand All @@ -214,7 +247,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"echo \"Homo homini lupus\" >> sed.txt"
]
},
{
Expand All @@ -230,7 +265,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"tail --lines=3 sed.txt"
]
},
{
Expand All @@ -246,7 +283,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"sed -e -i \"s/et/ET/g\" at.txt"
]
},
{
Expand All @@ -262,7 +301,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"whoami"
]
},
{
Expand All @@ -278,7 +319,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"pwd"
]
},
{
Expand All @@ -294,7 +337,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"cd lorem ; ls *.txt"
]
},
{
Expand All @@ -310,7 +355,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"cd lorem ; wc -l sed.txt"
]
},
{
Expand All @@ -326,7 +373,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"find . -name \"lorem*\" -type f | wc -l"
]
},
{
Expand All @@ -342,7 +391,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"cd lorem ; grep --color=always \"et\" at.txt"
]
},
{
Expand All @@ -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"
]
},
{
Expand All @@ -374,7 +427,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"cd lorem-copy ; grep -roh \"et\" . | wc -w"
]
},
{
Expand All @@ -397,7 +452,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"name=Carles"
]
},
{
Expand All @@ -413,7 +470,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"echo=$name"
]
},
{
Expand All @@ -429,7 +488,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"mkdir $name"
]
},
{
Expand All @@ -445,7 +506,9 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"rm -r $name"
]
},
{
Expand All @@ -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"
]
},
{
Expand Down