Mittwoch, 6. Februar 2008 Ian Marlier:
If I do `zypper lu | col > /tmp/z2 && cat /tmp/z2 | mail ....`, it doesn't come through as a binary attachment, but it's not pretty output either (see below).
Works good here in konsole and bash. Maybe your term settings differ?
In the end, what worked for me was using grep to remove the relevant lines. I guess the way that the progress meter is coded, it basically writes out the line over and over, with a reset of the cursor position with each update -- took me a while to figure that out, though.
Yes, and col removes those reverse line feeds. Here it does :) I'm sure there are real bash geeks around that would know what's not working for you with it.
The command that I ended up with is `zypper lu | grep -v "Reading" | grep -v "^$" > output && cat output | mail ....`
Fine. Wolfgang -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org