Aliases
Description
Aliases allow you to save your pipelines and commands with easy to remember nicknames.
You define aliases in your .bash_aliases file in your home directory.
Standard
alias aliasName="THING YOU WANT TO ALIAS" |
Piping to an alias
If the first command in an alias accepts standard input, then the alias can be piped to; even if it is an entire pipeline.
commandOne -options arguments | calmagic |
Examples
alias calmagic="cal -A 1 -B 1 12 2017"
//adjust alias so that it can accept standard input:
alias calmagic="xargs cal -A 1 -B 1 12 2017"