cat filename |grep you-y*-*m>newfilename或者cat filename |grep you-y*-5m>newfilenamecat filename |grep you-y*-3m>>newfilename
sed -n -e '/you-y[0-9]\{3\}-[5|3]m/p' file >> newfilegrep 'you-y[0-9]\{3\}-[5|3]m' file >> newfilegawk '/you-y[0-9][0-9][0-9]-[5|3]m/' file >> newfile awk --posix '/you-y[0-9]{3}-[3|5]m/' file >> newfile