Hi all,
I would like to print words in a file seperated by whitespaces containing a specific pattern like "="
e.g. I have a file1 containing strings like
%cat file1
The= some= in
wish= born
<eof> .I want to display only those words containing = i.e The= , some=,wish=
when i grep for pattern "=" in file1 , I get the entire line..
So I decided to loop like
for words in $( grep -x "=" file1)
do
# How do I print only those words containing = here
done