grep '\|\|...' 就可以了
[root@mail ~]# grep 'usrquota\|grpquota' /etc/fstab
LABEL=/1 / ext3 defaults,usrquota,grpquota 1 1
/dev/hda10 /mnt/test1 ext3 defaults,grpquota 1 3
[root@mail ~]#
LABEL=/1 / ext3 defaults,usrquota,grpquota 1 1
/dev/hda10 /mnt/test1 ext3 defaults,grpquota 1 3
[root@mail ~]#
满足一个条件
grep -E "abc|123|edf" /home/* >~/temp.txt