Created
October 2, 2017 14:36
-
-
Save himkt/67db8d694794ee2c8ccaf7a191e7454c to your computer and use it in GitHub Desktop.
This file contains 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
#! /bin/zsh | |
acat () { | |
fsize=`du -k $1| awk '{print $1}'` | |
if [ $(($fsize)) -gt 100 ]; then | |
echo 'this file is too large' | |
else | |
cat $1 | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment