I've got a text file with certain installation instructions, and I know I can grep for a unique occurrence in the file. For example, the text file has something like:
MYDIR=`find /home/user -name somedir` export PERL5LIB=$PERL5LIB:$MYDIR
In bash, how can I execute the lines after a grep in the file? Something like:
execute result from "grep somedir INSTALLFILE" execute result from "grep 'export PERL5LIB' INSTALLFILE"