Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Init
FILE="/tmp/out.$$"
GREP="/bin/grep"
#....
# Make sure only root can run our script
if [ "$(id -u)" -ne "0" ]; then
echo "This script requires root."