If you run this command

#dpkg -L gedit

then it will show files , output will be line by line

I need to store this ouput in variable and process it in for loop

#LIST=`dpkg -L gedit`

but when I echo it

echo -e $LIST

the newline is now shown, how to process such output so that newline remains
in variable.

anyother method.
one solution can be
dpkg -L gedit > somefile
and then read file line by line, but I do not want disk operation.

any bash expert ??

-- 
┌─────────────────────────┐
│    Narendra Sisodiya ( नरेन्द्र सिसोदिया )
│    Society for Knowledge Commons
│    Web : http://narendra.techfandu.org
└─────────────────────────┘

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to