This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command | Output Stream | Pattern Space | Hold Space | Jump to | |
---|---|---|---|---|---|
= | print line number | ||||
a TEXT | queue printing TEXT after the default print | ||||
r FILENAME | queue printing content of FILENAME after the default print | ||||
R FILENAME | queue printing a line of FILENAME after the default print | ||||
i TEXT | print TEXT | ||||
c TEXT | print TEXT | delete | end-of-cycle | ||
d | delete | end-of-cycle | |||
D | delete first line | beginning of cycle (or end-of-cycle if 'Pattern Space' is empty) | |||
e | run 'Pattern space' as shell command and replace with output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moby Dick | |
Herman Melville | |
**** | |
--- | |
The Da Vinci Code | |
Dan Brown | |
*** | |
--- | |
Puns and Paronomasias | |
Albert Winesthein |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Size of Wikipedia Page (Kilobytes) | Programming Language | Wikipedia Page Link | |
---|---|---|---|
612 | PHP | https://en.wikipedia.org/wiki/PHP | |
576 | Python | https://en.wikipedia.org/wiki/Python_(programming_language) | |
524 | COBOL | https://en.wikipedia.org/wiki/COBOL | |
476 | Rust | https://en.wikipedia.org/wiki/Rust_(programming_language) | |
452 | PowerShell | https://en.wikipedia.org/wiki/PowerShell | |
432 | APL | https://en.wikipedia.org/wiki/APL_(programming_language) | |
428 | Scala | https://en.wikipedia.org/wiki/Scala_(programming_language) | |
428 | Perl | https://en.wikipedia.org/wiki/Perl | |
424 | JavaScript | https://en.wikipedia.org/wiki/JavaScript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# WIOBE Index - Memeing the TIOBE Index since June 2023 | |
# - A measure of popularity of programming languages by their Wikipedia page size (in kilobytes) | |
# - Find the WIOBE Index here: https://gist.github.com/sebastiancarlos/4940d24af353fdf3a2f59aed49314048 | |
# Blocklist: a list of programming languages that we dont want to include | |
# - because their linked wikipedia page is not actually for the language itself but for the platform that includes it. | |
# - because they are duplicates from other language with the same page. | |
# - because they are not programming languages. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All my gist code is licensed under the terms of the MIT license. | |
# Copy this into your .bashrc or something like that. | |
# custom dirs | |
# - default to 'dirs -v' format and colorize the output | |
function dirs () { | |
# if no arguments, or single argument is -v or -c, then colorize | |
if [ $# -eq 0 ] || { [ $# -eq 1 ] && { [ "$1" = "-v" ] || [ "$1" = "-c" ]; }; }; then | |
# if argument is -c, run it (clear stack) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All my gist code is licensed under the terms of the MIT license. | |
# put this in your .bashrc or something like that | |
# localenv | |
# print only the environment variables that were added | |
# since the shell was started | |
function localenv () { | |
# this is done by comparing the output of 'set' in the current | |
# shell with the output of 'set' in a new shell. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All my gist code is licensed under the terms of the MIT license. | |
# Video demo: https://www.youtube.com/watch?v=bNITSDWht6w | |
# add to your .bashrc or something like that | |
# custom shopt | |
# It pipes into column -t if there are no arguments, | |
# because the default with broken lines is not very readable. | |
# And while I'm at it, make 'on' green and 'off' red. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All my gist code is licensed under the terms of the MIT license. | |
# Video demo: https://www.youtube.com/watch?v=eN4_nmREzCQ | |
# copy this to your .bashrc or something like that | |
# shelloptions | |
# combine output of "bind -V", "set -o" and "shopt", thereby showing all shell | |
# options in one place. Display nicely with color and column alignment. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All my gist code is licensed under the terms of the MIT license. | |
# Video demo: https://www.youtube.com/shorts/7rEHZPfJwYU | |
# custom stty | |
# - color and table formatting | |
function stty () { | |
# only proceed if called with: | |
# - no arguments | |
# - only -a |