This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Fancy echo | |
fancy_echo() { | |
printf "\n%b\n" "$1" | |
} | |
## Install php5 | |
fancy_echo "Installing php5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Exit trap | |
trap 'ret=$?; test $ret -ne 0 && printf "failed\n\n" >&2; exit $ret' EXIT | |
set -e | |
## Fancy echo | |
fancy_echo() { | |
printf "\n%b\n" "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Fancy echo | |
fancy_echo() { | |
printf "\n%b\n" "$1" | |
} | |
## Debian-Ubuntu package update | |
fancy_echo "Updating system packages ..." | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Yorum satırı | |
# İlk satırdaki komut ise yorum değildir. | |
# Bu satırın anlamı bu scripti bash shell de çalıştır. | |
# Terminali temizle komutu | |
clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Bu kodları çalıştırmak için bu dosyayı name.sh olarak kayıt edip bulunduğu dizine gidin ve | |
# terminalden şu kodu çalıştırın | |
# sh name.sh /directory/subdirectory | |
# dosya isminden sonraki /directory/subdirectory yedeği oluşturulacak dizini belirtir | |
# Terminali temizle | |
clear |
NewerOlder