Sobre .sh

Shell script berisi perintah-perintah shell yang dieksekusi berurutan. Shell paling umum: Bash (Bourne Again Shell), Zsh (Z shell - default macOS), sh (POSIX shell), dan Fish (user-friendly). Fitur: variables, command substitution ($(cmd)), pipes (|), redirections (>, >>, <), loops (for, while), conditionals (if, case), functions, trap (error handling), dan arrays. Perintah Unix yang powerful: grep, awk, sed, find, sort, xargs, cut, tr, tee. Digunakan untuk: backup scripts, deployment automation, cron jobs, system administration, CI/CD pipelines, dan shell automation. Contoh populer: deploy.sh, backup.sh, setup.sh. Kekurangan: syntax kurang intuitif untuk non-programmer, dan error handling terbatas. Alternatif modern: Python/Ruby untuk scripting kompleks. Shell script dapat dijalankan dengan: bash script.sh, ./script.sh (chmod +x), atau source script.sh.

Software compatível

  • Terminal Grátis
  • Git Bash Grátis
  • Any Text Editor Grátis

Formatos alternativos

.bash .zsh .ps1 .cmd