Re: little calendar hack
Article: 7920 of alt.hackers From: and1000@thor.cam.ac.uk (Austin Donnelly) Newsgroups: alt.hackers Subject: Re: little calendar hack Date: 31 May 1995 17:39:39 GMT Organization: University of Cambridge, England Lines: 18 Approved: and1000@cam.ac.uk Message-ID: 3qi9kr$oln@lyra.csx.cam.ac.uk Reply-To: and1000@cam.ac.uk NNTP-Posting-Host: hammer.thor.cam.ac.uk Status: RO
In article <3qdkbf$219@magus.cs.utah.edu>, Greg Alt <galt@asylum.cs.utah.edu> wrote: >Here's a little something I banged out yesterday while bored: > >alias ccal 'cal `date +%m\ %Y%n`| >sed -e s/\$/\ / -e s/^/\ / -e "s/ \(`date +%e%n`\) /#\1#/"' Yes!! Now that's a *real* hack! >Anyone think they can shorten this to under 80 chars? How about: alias ccal='cal|sed -es/\$/\ / -es/^/\ / -e"s/ \(`date +%e%n`\) /#\1#/"' (since cal prints this month by default) Austin