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
Post a Comment