Shell File Manager
Current Path : /usr/share/awk/ |
|
Current File : //usr/share/awk/readable.awk |
# readable.awk --- library file to skip over unreadable files
#
# Arnold Robbins, [email protected], Public Domain
# October 2000
# December 2010
BEGIN {
for (i = 1; i < ARGC; i++) {
if (ARGV[i] ~ /^[[:alpha:]_][[:alnum:]_]*=.*/ \
|| ARGV[i] == "-" || ARGV[i] == "/dev/stdin")
continue # assignment or standard input
else if ((getline junk < ARGV[i]) < 0) # unreadable
delete ARGV[i]
else
close(ARGV[i])
}
}
Shell File Manager Version 1.1, Coded By Shell
Email: [email protected]