whichcat
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user