X-Git-Url: https://git.alrj.org/?p=brioche.git;a=blobdiff_plain;f=dow;fp=dow;h=fa57508499dfe97ad9cb9b56514638063845e0f1;hp=0000000000000000000000000000000000000000;hb=234cc50467cfd3c9adfbfd4a9d9ac1a5b10499bd;hpb=5430e18aa198b619dd5e4a812dccc96751aba970 diff --git a/dow b/dow new file mode 100644 index 0000000..fa57508 --- /dev/null +++ b/dow @@ -0,0 +1,16 @@ +#! /bin/bash + +# This script simply prints the abbreviated weekday name, using the C locale +# and without line feed. +# +# Written by Amand Tihon for the Brioche backup script. +# This script is Public Domain. +# +# A possible use is to generate daily logfiles names, like with +# ... > /var/log/something.`dow`.log +# +# Note that if you intend to use it like this from your crontab, it should be +# placed in a directory present in the limited PATH set by cron, like /usr/bin. + +export LC_ALL=C +echo -n `date "+%a"`