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