#!/bin/sh # Usage: ./put.sh # /var/www/html に index.php を書き出す set -eu dir=/var/www/html mkdir -p "$dir" cat > "$dir/index.php" <<'EOF'