blob: b199307401c9121f660952d512ef161781e4e6e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
# update QOTD
qotd_file=$HOME/qotd.txt
awk '{print;}/~ ~ ~/{exit;}' "$qotd_file" >/tmp/qotd
echo >>/tmp/qotd
echo "~ ~ ~" >>/tmp/qotd
echo >>/tmp/qotd
fortune >>/tmp/qotd
mv /tmp/qotd "$qotd_file"
|