Skip to content

annoying: A random year between 2000 and 2045 is used for cal command.#75

Open
zeroby0 wants to merge 1 commit into
mathiasbynens:masterfrom
zeroby0:annoying-cal
Open

annoying: A random year between 2000 and 2045 is used for cal command.#75
zeroby0 wants to merge 1 commit into
mathiasbynens:masterfrom
zeroby0:annoying-cal

Conversation

@zeroby0

@zeroby0 zeroby0 commented Oct 6, 2018

Copy link
Copy Markdown
function cal() {
    if [ $# -eq 0 ]; then # If no arguments
        /usr/bin/cal -m $(date +%b) $(( ((RANDOM<<15)|RANDOM) % 45 + 2000 ));
    else
        /usr/bin/cal $(( ((RANDOM<<15)|RANDOM) % 45 + 2000 ));
    fi;
}

A random year between 2000 and 2045 is used for cal command.

https://github.com/zeroby0/pranks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant