Usage

rsc-on-this-day

Display the Royal Society of Chemistry “On This Day In Chemistry” fact for the given day.

If no date is given the current date is used.

rsc-on-this-day [OPTIONS] [MONTH] [DAY]

Options

--version

Show the version and exit.

--clear-cache

Clear any cached data and exit.

-w, --width <width>

The number of characters per line of the output. Set to -1 to disable wrapping.

Default

80

Arguments

MONTH

Optional argument. Default None

DAY

Optional argument. Default None

Examples

rsc_on_this_day
  • Display the “On This Day In Chemistry” fact for today.

rsc_on_this_day Apr 1
  • Display the “On This Day In Chemistry” fact for April 1st.

rsc_on_this_day 12 25
  • Display the “On This Day In Chemistry” fact for 25 December.

rsc_on_this_day --clear-cache
  • Clear any cached data.

rsc_on_this_day October 13 --width 80
  • Display the “On This Day In Chemistry” fact for October 13th, with at most 80 characters per line.

Adding to ~/.bashrc

rsc-on-this-day can be run every time you open a terminal by adding rsc-on-this-day to your ~/.bashrc file. For example:

echo "rsc-on-this-day" >> ~/.bashrc