Home > database >  How to pass the search keyword listed in a file to the file command in gitbash in windows 10
How to pass the search keyword listed in a file to the file command in gitbash in windows 10

Time:08-24

I have a dictionary.txt which i will be using to search some files using find command.

example of dictionary.txt:

*.xlsx
*project*

I am trying to make this command works but no luck

cat dictionary.txt | xargs -i find /d -iname '"{}"'

CodePudding user response:

You have used single quotes in the wrong way.

Change your command in cat dictionary.txt | xargs -i find /d -iname "{}"

  • Related