ambevar-dotfiles/.scripts/gnac

14 lines
231 B
Plaintext
Raw Normal View History

2014-03-05 15:59:15 +01:00
#!/bin/sh
if [ "$1" = "-" ] || [ "$1" = "--help" ]; then
cat <<EOF
Usage: ${0##*/} [FILES]
Grep non-ascii characters. If no files are provided, use stdin.
EOF
exit
fi
perl -ne 'chomp; print $_, "\n" if /[[:^ascii:]]/'