find2perl(1) DG/UX R4.11MU05 find2perl(1)
NAME
find2perl - find to perl translator
SYNOPSIS
find2perl path-name-list expression
where:
path-name-list
blank-separated list of path names.
expression
a valid find(1) boolean expression.
DESCRIPTION
The find2perl command takes as input find command line arguments. It
produces a comparable perl script on the standard output.
EXAMPLES
$ find2perl / -name core -print
The above command will produce the following on standard output:
#!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if $running_under_some_shell;
require "finddepth.pl";
# Traverse desired filesystems
&finddepth('/');
exit;
sub wanted {
/^core$/ &&
print("$name0);
}
$ find2perl . -perm 0777 -print | perl
The above command will display all files in the current directory
having permission 0777.
DIAGNOSTICS
Exit status is 0 on success, -1 otherwise.
SEE ALSO
find(1), perl(1).
NOTE
find2perl does not support -local as an expression argument.
Licensed material--property of copyright holder(s)