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

# Removes old events from specified file (default: SDEPDATA/once).

# Usage: sdep-clear [file]

file="SDEPDATA/${1:-once}"
temp=$(mktemp)

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

Generated with cgit - Back to sebastiano.tronto.net