[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] script help please
From: |
Randy |
Subject: |
[Help-bash] script help please |
Date: |
Thu, 25 Jun 2015 10:38:27 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
I'm sorry this will seem like a simple question - but I've already
asked my more bash-literate friends. We're stuck.
There is a command I use frequently:
find *.pdf -exec sh -c 'pdftotext "{}" - | grep --with-filename
--label="{}" --color "XXXX"' \;
(where "XXXX" is the text for which I am search PDF files.)
I tried to write a script, where I could simply pass-in ($1) the
string. Could not make it work.
I would greatly appreciate help with this syntax.
Thank you,
Randy
- [Help-bash] script help please,
Randy <=