daily pastebin goal
39%
SHARE
TWEET

homework alert

a guest Dec 30th, 2014 8 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. now=$(date +%s)
  2.  
  3. echo Upcoming papers!
  4. echo
  5.  
  6. for f in papers/*; do
  7.         deadline=$(sed -n 1p $f)
  8.         alert=$(sed -n 2p $f)
  9.  
  10.         if [ $now -ge $alert -a $now -lt $deadline ]; then
  11.                 sed 1,2d $f
  12.         fi
  13. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top