Skip to content
cafebedouin.org

cafebedouin.org

Every day. Without hope, without despair.

  • writing
    • book reviews
    • code
      • github
    • comments
    • essays
    • poetry
    • story ideas
  • reading
    • key books
    • articles
    • blog post
    • books
    • poetry
    • quotes
  • media
    • art
    • books
      • goodreads
    • comics
    • film
      • letterboxd
    • games
    • images
    • interviews
    • music
    • podcasts
    • software
    • videos
  • life
    • open questions
    • lessons
    • educational
    • tools
    • recipes
    • bookmarks
    • biography
  • cafebedouin
    • about
    • favorite posts
    • favorite things
    • github
    • goodreads
    • key books
    • letterboxd
    • portfolio
    • reddit
    • tip jar
    • twitter
  • RSS

Tag: Linux

bash: Number of Days Between Today and Some Future Date

March 23, 2021March 21, 2021 ~ cafebedouin

#!/bin/bash printf -v date '%(%Y-%m-%d)T\n' -1 echo $(( ($(date -d $1 +%s) - $(date -d $date +%s)) / 86400 )) days Above is a bash script to output the number of days between today and some future date. Copy it into a file, e.g., diffdate.sh, into a directory, e.g., ~/bin/scripts. Then, enter the directory you … Continue reading bash: Number of Days Between Today and Some Future Date

Fun With Fortune in Linux

March 12, 2021February 11, 2023 ~ cafebedouin

Fortune provides a random quote or aphorism every time you open a terminal in Linux. I wanted to have a personalized fortune using zuihitsu quotes posted on this site come up whenever I opened a terminal. If you want to do something similar, here's the procedure. To check if you have it installed, simply type … Continue reading Fun With Fortune in Linux

Posts navigation

Older posts
Newer posts

Search

Where to Start

Favorite Posts
Deferential Realism
About

Top Posts & Pages

  • The Physics of the Grip: Why Leia Was Right
  • The Machinery of Shallow Triumphs: The Structural Disinformation of Prestige Journalism
  • Card Catalogs
  • Thoughtcrime: I Fought the LAWS and the LAWS Won
  • Online Etymology Dictionary | Origin, history and meaning of English words

Archives

Enter your email address to follow this blog and receive notifications of new posts by email.

Translate

Site License

CC0 1.0 Universal
A WordPress.com Website.
cafebedouin.org
A WordPress.com Website.
  • Subscribe Subscribed
    • cafebedouin.org
    • Join 464 other subscribers
    • Already have a WordPress.com account? Log in now.
    • cafebedouin.org
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...