#! /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"`