How would you handle the following :-
# cat > file1
layout would always be the same, but variable fields / values.
How could I just display the /home/test element from a one liner text file
given that it would always be preeced by DIR= and always be the first
this is all I want to know, in the form of a shell script.
the DIR is not to specify the script, just the working directory.
Tried grep but that only returns the complete line, how do I do this in a
script please ??