[linux-lvm] hmmm, curious...

Patrick Caulfield caulfield at sistina.com
Thu Jan 31 05:42:01 UTC 2002


On Thu, Jan 31, 2002 at 09:11:13AM +0800, Colin Coe wrote:
> 
> Hi all, I have come accross a strange problem while doing some scripting
> with lvdisplay.  When I use lvdisplay piped to awk in the first example
> (noting that I have 'hard-wired' one field in awk), a second line is printed
> containing all hard-wired strings, including tabs.  But if I encase the
> lvdisplay in backticks and use echo then piped to awk the problem does not
> exist.

If you're using lvdisplay in a script isn't using the -c switch easier than
parsing the text output ?

patrick





More information about the linux-lvm mailing list