+ Frans Pop (Thu, 21 May 2009 00:12:59 +0200):

> + ... dpkg -s passwd | sed -n '/^Version:/s,^Version: ,,p')

FWIW that can be written just as `sed -n 's/^Version: //p'`, since "p"
will only print if a substitution was made, but what you probably want
is `dpkg-query -W -f '${Version}\n' passwd`, which TTBOMK is the
preferred interface for such queries.

HTH,

-- 
- Are you sure we're good?
- Always.
        -- Rory and Lorelai


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to