bash - Search recursively text from each line in file using standard cmd line commands -



bash - Search recursively text from each line in file using standard cmd line commands -

i have file variables names prepared grep call.

now want following: grep directory recursively , search in each file each variable entries (from prepared file). how accomplish via awk/sed or other console utility? know how with, example, python script, i'd utilize pure console solution.

i stuck on applying command data: awk '{ print $0}' rs="/" settings_vars.txt right? how phone call command instead of print line content?

you can utilize recursive grep -f option:

grep -rhf settings_vars.txt .

options used are:

-f # read 1 or more newline separated patterns file. -h # print filename headers output lines. -r # read files under each directory, recursively, next symbolic links if on command line.

bash awk sed grep

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -