aboutsummaryrefslogtreecommitdiff
path: root/scripts-build/sdep-clear
blob: e30fd4d657fa0e089f6d2702f42f9e977fb07eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Removes old events from specified file (default: /home/sebastiano/.local/share/sdep/once).

# Usage: sdep-clear [file]

file="/home/sebastiano/.local/share/sdep/${1:-once}"
temp=$(mktemp)

sdep -t <"$file" >"$temp"
mv "$temp" "$file"

Generated with cgit - Back to sebastiano.tronto.net