You can use AWK to do the regular expression match without needing to subsequently grep - e.g. ...
ls -l * | awk '/regexp/ print $9'
or grepping a specific field ..
ls -l * | awk '$n =~ /regexp/ print $9'
sorry it's been a while but I think syntax is correct
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.