Shell script: How to include a variable between apostrophes within a command
Hi.
I'm trying to find some words within my directory and created a text file containing them which is read by my shell script: Code:
#!/bin/bash Thank you very much. |
Try double quotes around your variable "$i".
|
the double quotes interpret shell variables while the single quotes do not
for example, in the bash shell Code:
> x='foobar' |
you are searching idividually throught the words file????
Code:
find . -type f | xargs -n9 grep -f words.txt |
All times are GMT -5. The time now is 10:58 PM. |