The tool should support ALL of Perl's -X flags that are relevant to files / directories.
It should take in a list of path names from stdin, and output all pathnames to stdout that match the specified criteria.
The script can take any number of flags on its command line. But the first flag is actually $0 -- the script's own name. This takes advantage of the fact that Bash lets you run executables that look like flags:
> function -f() { echo it worked; }
> -f
it worked
The script itself should be symlinked to all the other flags available, eg. -x, -T, etc. This lets you do things like:
The tool should support ALL of Perl's -X flags that are relevant to files / directories.
It should take in a list of path names from stdin, and output all pathnames to stdout that match the specified criteria.
The script can take any number of flags on its command line. But the first flag is actually $0 -- the script's own name. This takes advantage of the fact that Bash lets you run executables that look like flags:
The script itself should be symlinked to all the other flags available, eg. -x, -T, etc. This lets you do things like: