Add last task to day 5
This commit is contained in:
parent
263282356b
commit
89045cb74a
1 changed files with 13 additions and 0 deletions
13
day_5/cows_everywhere.sh
Executable file
13
day_5/cows_everywhere.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Download archive
|
||||
curl -LO https://codeberg.org/Mo8it/How_To_Linux/archive/main.tar.gz
|
||||
|
||||
# Extract archive
|
||||
tar -xzvf main.tar.gz
|
||||
|
||||
# Move to the directory that is extracted
|
||||
cd how_to_linux
|
||||
|
||||
# Replace all 'echo' with 'cowsay' in Markdown files
|
||||
find . -type f -name "*.md" | xargs sed -i 's/echo/cowsay/g'
|
Loading…
Reference in a new issue