rc: add multicat

cat multiple files including filenames
http://stackoverflow.com/a/7816490
This commit is contained in:
Aminda Suomalainen 2015-01-27 11:11:43 +02:00
parent 4766724ba4
commit 2560e7a2a9
2 changed files with 8 additions and 0 deletions

View File

@ -583,6 +583,10 @@ alias clear-apt-list-cache="cd /var/lib/apt/lists;rm *;cd partial;rm *;cd"
# every other browser does this too.
alias lynx="lynx -accept_all_cookies"
# Cat multiple files preserving filenames
# via http://stackoverflow.com/a/7816490
alias multicat='tail -n +1'
# Allow custom aliases to be put in .aliases or .bash_aliases .
# .aliases

View File

@ -558,6 +558,10 @@ alias clear-apt-list-cache="cd /var/lib/apt/lists;rm *;cd partial;rm *;cd"
# every other browser does this too.
alias lynx="lynx -accept_all_cookies"
# Cat multiple files preserving filenames
# via http://stackoverflow.com/a/7816490
alias multicat='tail -n +1'
# .aliases
if [ -f ~/.aliases ]; then
source ~/.aliases