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
10 changes: 10 additions & 0 deletions lorem-copy/at.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions lorem-copy/lorem.txt
Original file line number Diff line number Diff line change
@@ -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.
9 changes: 9 additions & 0 deletions lorem-copy/sed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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?Homo homini lupus
2 changes: 1 addition & 1 deletion lorem/sed.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ 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?
vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?Homo homini lupus
112 changes: 36 additions & 76 deletions solutions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,55 +22,7 @@
"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:"
]
},
{
"cell_type": "markdown",
"metadata": {
"lang": "en"
},
"source": [
"#### Print Hello World to console."
]
},
{
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: echo 'Hello World'"
]
},
{
Expand All @@ -86,7 +38,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: mkdir new_dir"
]
},
{
Expand All @@ -102,7 +54,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: rm -r new_dir"
]
},
{
Expand All @@ -118,7 +70,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: cp sed.txt /Users/marcdalmau/Desktop/lab-bash/lorem-copy"
]
},
{
Expand All @@ -134,7 +86,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: cp at.txt /Users/marcdalmau/Desktop/lab-bash/lorem-copy | cp lorem.txt /Users/marcdalmau/Desktop/lab-bash/lorem-copy"
]
},
{
Expand All @@ -150,7 +102,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: cat sed.txt"
]
},
{
Expand All @@ -166,7 +118,8 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: cat sed.txt\n",
" cat lorem.txt"
]
},
{
Expand All @@ -182,7 +135,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: head -3 sed.txt"
]
},
{
Expand All @@ -198,7 +151,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: tail -3 sed.txt"
]
},
{
Expand All @@ -214,7 +167,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: echo 'Homo homini lupus' >> sed.txt"
]
},
{
Expand All @@ -230,7 +183,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: tail -3 sed.txt"
]
},
{
Expand All @@ -246,7 +199,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: sed 's/et/ET/' at.txt"
]
},
{
Expand All @@ -262,7 +215,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: whoami"
]
},
{
Expand All @@ -278,7 +231,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: pwd"
]
},
{
Expand All @@ -294,7 +247,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: ls *.txt"
]
},
{
Expand All @@ -310,7 +263,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: wc -1 sed.txt"
]
},
{
Expand All @@ -326,7 +279,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: ls -lq lorem* | wc -l"
]
},
{
Expand All @@ -342,7 +295,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: grep --color=auto -n 'et' at.txt"
]
},
{
Expand All @@ -358,7 +311,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: grep -o 'et' at.txt | wc -l"
]
},
{
Expand All @@ -374,7 +327,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: grep -o 'et' *.txt | wc -l"
]
},
{
Expand All @@ -397,7 +350,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: name=Marc"
]
},
{
Expand All @@ -413,7 +366,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: echo $name"
]
},
{
Expand All @@ -429,7 +382,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: mkdir $name"
]
},
{
Expand All @@ -445,7 +398,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: rmdir $name"
]
},
{
Expand All @@ -465,7 +418,11 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: \n",
"\n",
"for i in * ; do echo $i ; done\n",
"for file_name in *; do echo ${#file_name} ; done\n",
"for file in * ; do echo $file 'has ' ${#file} 'characters' ; done"
]
},
{
Expand All @@ -484,7 +441,10 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: \n",
"\n",
"top\n",
"ps -a"
]
},
{
Expand All @@ -500,7 +460,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: top"
]
},
{
Expand All @@ -516,7 +476,7 @@
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command: "
]
},
{
Expand Down