The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
grep string and output filename
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
grep string and output filename
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
11-20-2007
edcrosbys
Read Only
Join Date: Jul 2007
Posts: 15
not sure what OS you are using, but grep -l (that's a lowercase L) will show just the filename, not the line that matches. Do a man on grep and it should tell you how to get just the name, or tell us the os and we might be able to help some more.
edcrosbys
View Public Profile
Find all posts by edcrosbys
Find edcrosbys's past nominations received
Find edcrosbys's present nominations given