If the file files.txt contains
Quote:
cryptostore
QHStore
securedFile
|
And the following is run:
Code:
export NEWVAR=`sed -r -e '/^[^Q]/d' files.txt`
Then the result is:
Code:
echo $NEWVAR
QHStore
Basically, the `` notation runs a command for you. You can also use $(command) notation. There's more info in `man bash` under Command Substitution.