Skip to content

Instantly share code, notes, and snippets.

View aaronwhite's full-sized avatar

Aaron White aaronwhite

View GitHub Profile
jmaki@jmaki-pc ~
$ cat piping.sh
#!/bin/bash
while getopts oe arg; do
case "${arg}" in
o ) echo >&1 "This is writing to stdout" ;;
e ) echo >&2 "This is writing to stderr" ;;
* ) ;; # ignore
esac
done