diff --git a/qcd_function b/qcd_function index e22c431..27d4b2c 100644 --- a/qcd_function +++ b/qcd_function @@ -412,3 +412,7 @@ function path_remove_duplicates { PATH=$( echo $PATH | awk -F: '{for (i=1;i<=NF;i++) { if ( !x[$i]++ ) printf("%s:",$i); }}' | sed 's,:\+$,,g' ) export PATH } + +function whichcat { + which "$1" | xargs cat +}