]> git.alrj.org Git - brioche.git/blob - dow
Replace lftp's call to 'rmdir' by calls to 'rm -rf'.
[brioche.git] / dow
1 #! /bin/bash
2
3 # This script simply prints the abbreviated weekday name, using the C locale
4 # and without line feed.
5 #
6 # Written by Amand Tihon <amand.tihon@alrj.org> for the Brioche backup script.
7 # This script is Public Domain.
8 #
9 # A possible use is to generate daily logfiles names, like with
10 # ... > /var/log/something.`dow`.log
11 #
12 # Note that if you intend to use it like this from your crontab, it should be
13 # placed in a directory present in the limited PATH set by cron, like /usr/bin.
14
15 export LC_ALL=C
16 echo -n `date "+%a"`