sdep

A simple "date+event" line parser
git clone https://git.tronto.net/sdep
Download | Log | Files | Refs | README | LICENSE

sdep-clear (195B)


      1 #!/bin/sh
      2 
      3 # Removes old events from specified file (default: SDEPDATA/once).
      4 
      5 # Usage: sdep-clear [file]
      6 
      7 file="SDEPDATA/${1:-once}"
      8 temp=$(mktemp)
      9 
     10 sdep -t <"$file" >"$temp"
     11 mv "$temp" "$file"