[Bug 1697448] Re: calendar: how to manage multiple calendar files?

G.M. 1697448 at bugs.launchpad.net
Wed Aug 23 08:48:44 UTC 2017


In reply to my own question, I've found the following dirty hack:

 ( calendar -A 3 -B 1 -f ~/.myclendar ; \
      calendar -A 1 -B 1 -f /usr/share/calendar/xx_xx/calendar.yyy ; \
      calendar -A 7 -B 0 -f /usr/share/calendar/xx_xx/calendar.zzz) | sed '/^$/d' | sort -k1,1 -k2,2

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bsdmainutils in Ubuntu.
https://bugs.launchpad.net/bugs/1697448

Title:
  calendar: how to manage multiple calendar files?

Status in bsdmainutils package in Ubuntu:
  New

Bug description:
  Hi,

  I'm using BSD's "calendar" to print dates of interest at each opening
  of a terminal (in fact, of a shell...).

  As you can guess, I need the number of entries to be as low as
  possible in order not to pollute my screen.

  For the moment, I use "calendar.french", but there are too many
  entries there. I'd like to use only the files
  "/usr/share/calendar/fr_FR/calendar.fetes and
  "/usr/share/calendar/fr_FR/calendar.jferies".

  I've tried with multiple "-f" options, but then "calendar" defaults to
  its basic behaviour: using "calendar.all".

  My first remark is the following: I think there's a bug here since it
  does not warn the user that there is an error in parsing the command
  line.

  My second remark is : does anyone knows an option/trick I could use to open multiple calendar files? I've tried the following, but it does not work:
  calendar -A 3 -B 3 <(cat /usr/share/calendar/fr_FR/calendar.{fetes,jferies})

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/1697448/+subscriptions



More information about the foundations-bugs mailing list