Skip to content

Commit afed149

Browse files
committed
adding one ex
1 parent 00940d2 commit afed149

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

unix/scripting_marathon.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,16 @@ You can also notice two variables: $1 and $2. When scripting in bash, a dollar s
124124

125125
What our script will do is a simple copy of a file, but with adding the date to the end of the file name. Save it and try it out!
126126

127-
## Conditionals
127+
### Exercise
128+
129+
Write a script that backs itself up, that is, copies itself to a file named backup.sh.
130+
131+
Hint: Use the cat command and the appropriate positional parameter.
132+
133+
134+
135+
<!-- ## Conditionals
128136
129137
Conditionals let you decide whether to perform an action or not, this decision is taken by evaluating an expression.
130138
131-
### if / then / else
139+
### if / then / else -->

0 commit comments

Comments
 (0)