Skip to content

Instantly share code, notes, and snippets.

@sourcerebels
Created July 5, 2011 13:29
Show Gist options
  • Save sourcerebels/1064836 to your computer and use it in GitHub Desktop.
Save sourcerebels/1064836 to your computer and use it in GitHub Desktop.
Simple shell script for redirecting both standard and error output to /dev/null
#!/bin/bash
[ $# -gt 0 ] && $* > /dev/null 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment