functions: added ucat() function to cat regular or gzipped files.
This commit is contained in:
parent
2ed29cdea0
commit
584337e5bd
@ -40,3 +40,15 @@ err()
|
||||
{
|
||||
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] \033[0m\033[1;31mERROR: $*\033[0m"
|
||||
}
|
||||
|
||||
ucat()
|
||||
{
|
||||
case "$1" in
|
||||
*.gz)
|
||||
zcat "$1"
|
||||
;;
|
||||
*)
|
||||
cat "$1"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
Reference in New Issue
Block a user