SH (Shell Script) adalah file script untuk shell Unix/Linux (bash, sh, zsh, ksh). Pilar otomasi di sistem operasi Unix/Linux/Mac untuk administrasi sistem, deployment, dan workflow development.
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.