Probably better as:
perl -sne " BEGIN { @ARGV = map glob( $_ ), @ARGV } /\[$TAG\]/ ... /\[ +\/$TAG\]/ && print qq[$ARGV($.):$_]; close ARGV if eof " -- -TAG=ta +th_tag ./*/dir/*.ext
In reply to Re^2: seeking oneliner improvement
by jwkrahn
in thread seeking oneliner improvement
by Discipulus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |