> result.log f=`head -1 a.txt` grep PATTERN $f > $f.log for g in `tail +2 a.txt` do grep PATTERN $g > $g.log comm -3 $g.log $f.log >> result.log rm $g.log done rm $f.log
In reply to Re: Compare multiple files and output differences
by JavaFan
in thread Compare multiple files and output differences
by prescott2006
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |