~charles/dotfiles

f3d8c43ffc40a3ddf482a222c3399052aa6b2f4b — Charles Daniels 4 years ago 988c963
gr ignore un-readable files
1 files changed, 1 insertions(+), 1 deletions(-)

M overlay/bin/gr
M overlay/bin/gr => overlay/bin/gr +1 -1
@@ 12,7 12,7 @@ else
fi

find . -type f -print | perl -ne 'print if /'"$file_pattern"'/' | while read -r f ; do
	if [ ! -e "$f" ] ; then continue ; fi
	if [ ! -r "$f" ] ; then continue ; fi

	hdr="$f"
	grep -U -i -n "$pattern" "$f" | while read -r line ; do