Shell Script 기본#!/bin/bash set -euo pipefail for f in *.log; do gzip "$f" doneset 옵션-e 에러 시 중단-u 미정의 변수 에러-o pipefail 파이프 실패 전파