14 lines
324 B
Bash
14 lines
324 B
Bash
|
#!/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'
|