Nov 22, 2005 #1 uguess Technical User Joined Nov 5, 2004 Messages 40 Location CA if i want to search multiple files for specific field and then return the matching filename + line number. how can i do that.
if i want to search multiple files for specific field and then return the matching filename + line number. how can i do that.
Nov 22, 2005 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR Have a look at the -n option in the grep's man page. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Have a look at the -n option in the grep's man page. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Nov 22, 2005 #3 Annihilannic MIS Joined Jun 22, 2000 Messages 6,317 Location AU Also see the -r option, if you are using GNU grep. If it is available you will not need to use find at all. Annihilannic. Upvote 0 Downvote
Also see the -r option, if you are using GNU grep. If it is available you will not need to use find at all. Annihilannic.