My question is : What would be the simplest way to apply this one-liner to each file in my directory: ls dir | for each file execute: perl -lne '/^([^\t]*)\t/; $hash{$1}++}{print $_ foreach(keys %hash)' thnxperl -lne '/^([^\t]*)\t/; $hash{$1}++}{print $_ foreach(keys %hash)' i +nfile.txt
In reply to Enclosing one-liner in a bigger loop - unix by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |