Nov 22, 2005 #1 uguess Technical User Nov 5, 2004 40 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 Nov 8, 2002 53,708 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 Jun 22, 2000 6,317 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.