Groby Computers Ltd - Leicester
Oracle Database Administration
#!/bin/ksh
#--------------------------------------------------------------------------------
# File: nonascii
# Purpose: To display lines in the given files that contain non ASCII characters
# It works by searching for characers in the range 128-255. The -P flag
# is to request that vi use Perl-like regular-expressions.
# Usage: nonascii [grep-switch] <file-spec>
# !!!!!!!!!! WORKS FOR LINUX BUT MAY NOT WORK FOR OTHER UNIXs !!!!!!!!!!
#--------------------------------------------------------------------------------
grep -P "[\x80-\xff]" "$@"
# End of file nonascii
Page Updated Thu Oct 20 22:07:38 BST 2011