sane-which: only print the first 30 lines for text files
This commit is contained in:
parent
b515127101
commit
9e504676bd
|
@ -39,7 +39,7 @@ echo
|
|||
|
||||
case $(file --brief --mime "$cur") in
|
||||
(*text*)
|
||||
cat "$cur"
|
||||
head -n30 "$cur"
|
||||
;;
|
||||
(*)
|
||||
echo $(file "$cur")
|
||||
|
|
Loading…
Reference in New Issue
Block a user