4 <title>adesklets news</title>
7 for FILE
in $
(find news
-name '*.txt' -maxdepth 1 |
tac); do
8 if ! head -n 1 ${FILE} |
grep '^@' > /dev
/null
; then
9 sed -i "1i@$(date -u)@" ${FILE}
12 <news date="$(sed -n '1{s/@\(.*\)@/\1/;p}' ${FILE})"
13 title="$(sed -n '2p' ${FILE})">
14 $(sed -n '3,$p' ${FILE})