Skip to content

Instantly share code, notes, and snippets.

@JourneymanGeek
Created December 5, 2016 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JourneymanGeek/8ce6c314dce496586fca4abd38eaf6b7 to your computer and use it in GitHub Desktop.
Save JourneymanGeek/8ce6c314dce496586fca4abd38eaf6b7 to your computer and use it in GitHub Desktop.
#!/bin/bash
daydate=x`date +%j`
if [ -f $daydate ];
then
echo "task already run"
else
rm x*; open -a safari http://www.example.com ; touch $daydate
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment