From owner-freebsd-questions@FreeBSD.ORG Sat Oct 10 10:11:56 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE57C1065672 for ; Sat, 10 Oct 2009 10:11:56 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-gx0-f214.google.com (mail-gx0-f214.google.com [209.85.217.214]) by mx1.freebsd.org (Postfix) with ESMTP id A02638FC0A for ; Sat, 10 Oct 2009 10:11:56 +0000 (UTC) Received: by gxk6 with SMTP id 6so7057709gxk.13 for ; Sat, 10 Oct 2009 03:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=lX0+VhU12WlmE7jlviMMFpCGndoDL2dMXcbY4flHoaM=; b=mF/zoWccegldC44CBAq3n5NOZCY02wtDrh+FXL6qSwWX5PPPwkp0LUEq+O8rRPBPKG 0MxztZffNnQ9fjelzaJzImVmtngKJ2HPjZFpihkgrOpNyl1ja9k2nBltpdPFhEwDCJbS hRPyJjDjVp8DXUpz1kGIJwnJTP140nb6vioBE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=QYlWpkMm/MHkr3MYxqJ3YJ/dUiXB3BAxQtiPYfxltK6wXkhEeIqB3KbgsxtGC5tI2q mzkUwfGUD1xf+K3bgexekVhVSxdg+hjzYpkV5+7eJ5OFIyWaAZk64UJhvIfRhdZ6+V+0 QVsqvAsd2elf6IC96Ay8i85lcLonuftq9+69s= Received: by 10.150.44.27 with SMTP id r27mr6425180ybr.263.1255169515848; Sat, 10 Oct 2009 03:11:55 -0700 (PDT) Received: from dimension.5p.local (adsl-99-19-46-114.dsl.klmzmi.sbcglobal.net [99.19.46.114]) by mx.google.com with ESMTPS id 14sm1054831gxk.14.2009.10.10.03.11.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 Oct 2009 03:11:54 -0700 (PDT) Sender: "J. Hellenthal" Date: Sat, 10 Oct 2009 06:11:52 -0400 From: jhell To: PJ In-Reply-To: <4AD04D6E.5000309@videotron.ca> Message-ID: References: <4AD04D6E.5000309@videotron.ca> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: conky calendar X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2009 10:11:57 -0000 On Sat, 10 Oct 2009 05:01, af.gourmet@ wrote: > I'm having a bit of a time with the calendar.sh script I found on the > Net; it doesn't display quite correctly. > It should have brackets around the current date, but I can't figure out > what is not functioning correctly: > > #!/bin/sh > cal | awk 'NR>2' | sed -e 's/ / /g' -e 's/[^ ] /& /g' -e 's/..*/ & > /' -e 's/ \('`date | awk '{print $2}'`'\) /\['`date | awk '{print $2}'`'\]/' > > Change the NR>2 to NR1 and the printout includes the days of the week: > Su Mo Tu We Th Fr Sa > 1 2 3 > 4 5 6 7 8 9 10 > 11 12 13 14 15 16 17 > 18 19 20 21 22 23 24 > 25 26 27 28 29 30 31 > > Since today is the 10th, we should be seeing [10] - but we are not. > Also, there is the problem of the 1,2,3 not showing in the right days - > in conky this can be fixed by not using xft... but then I'm not sure of > how to change the font size... perhaps the xorg screen size is the > default ??? > > I'm not very good at programming, but I did look up the man pages for > cal, sed and awk but it is a little complicated for my little brain. > Can anyone help, please? > Where did you Saturday go to ? I would love for some of my Thursdays and sometimes Fridays to just disappear like this but Saturday ? come on now what is the world coming to ? ;) -- ;; dataix.net!jhell 2048R/89D8547E 2009-09-30 ;; BSD since FreeBSD 4.2 Linux since Slackware 2.1 ;; 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E