Created
April 27, 2014 02:29
-
-
Save mhluska/11336302 to your computer and use it in GitHub Desktop.
How many times have you cat'd a directory?
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
function cat { | |
if [ "${#}" -gt 0 -a -d "${1}" ]; then | |
/bin/ls -l ${*} | |
else | |
/bin/cat ${*} | |
fi | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment