Skip to content
Open
Show file tree
Hide file tree
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
Empty file added example.txt
Empty file.
69 changes: 37 additions & 32 deletions solutions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:echo \"Hello World\""
]
},
{
Expand All @@ -38,7 +38,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: mkdir new_dir"
]
},
{
Expand All @@ -54,7 +54,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: rm -r new_dir"
]
},
{
Expand All @@ -70,7 +70,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: cp sed.txt ../lorem-copy"
]
},
{
Expand All @@ -86,7 +86,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: cp {at.txt,lorem.txt} ../lorem-copy"
]
},
{
Expand All @@ -102,7 +102,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: cat sed.txt"
]
},
{
Expand All @@ -118,7 +118,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: cat {at.txt,lorem.txt}"
]
},
{
Expand All @@ -134,7 +134,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: head -n 3 sed.txt"
]
},
{
Expand All @@ -150,7 +150,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: tail -n 3 sed.txt"
]
},
{
Expand All @@ -166,7 +166,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: echo \"Homo homini lupus.\" >> sed.txt"
]
},
{
Expand All @@ -182,7 +182,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: tail -n 3 sed.txt"
]
},
{
Expand All @@ -198,7 +198,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: sed -i 's/et/ET/g' at.txt"
]
},
{
Expand All @@ -214,7 +214,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: whoami"
]
},
{
Expand All @@ -230,7 +230,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: pwd"
]
},
{
Expand All @@ -246,7 +246,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: ls *.txt"
]
},
{
Expand All @@ -262,7 +262,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: wc -l sed.txt"
]
},
{
Expand All @@ -278,7 +278,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: find -name \"lorem*\" | wc -l"
]
},
{
Expand All @@ -294,7 +294,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: grep -o \"et\" at.txt"
]
},
{
Expand All @@ -310,7 +310,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: grep -o -i 'et' at.txt | wc -l"
]
},
{
Expand All @@ -326,7 +326,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: grep -o -i 'et' * | wc -l"
]
},
{
Expand All @@ -349,7 +349,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:name=\"Patricia\""
]
},
{
Expand All @@ -365,7 +365,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: echo $name"
]
},
{
Expand All @@ -381,7 +381,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: mkdir $name"
]
},
{
Expand All @@ -397,7 +397,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:rm -rf $name"
]
},
{
Expand All @@ -417,7 +417,12 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: $ for file in *\n",
"> do\n",
"> echo $file\n",
"> name_length={#file}\n",
"> echo $file has name_length characters lenght\"\n",
"done"
]
},
{
Expand All @@ -436,7 +441,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: ps -a"
]
},
{
Expand All @@ -452,7 +457,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:cat /proc/cpuinfo"
]
},
{
Expand All @@ -468,7 +473,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: touch .bash_profile ; alias k='clear' ; alias e='echo' ; alias h='--help'"
]
},
{
Expand All @@ -484,7 +489,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: tar -czvf lorem-compressed.tar.gz lorem lorem-copy"
]
},
{
Expand All @@ -500,7 +505,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: mkdir lorem-uncompressed ; tar -xzvf lorem-compressed.tar.gz -C ./lorem-uncompressed"
]
},
{
Expand All @@ -516,7 +521,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: The command: mkdir lorem-uncompressed ; tar -xzvf lorem-compressed.tar.gz -C ./lorem-uncompressed"
]
}
],
Expand All @@ -536,7 +541,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
"version": "3.11.4"
},
"nbTranslate": {
"displayLangs": [
Expand Down