]> git.ipfire.org Git - thirdparty/util-linux.git/commit
findmnt: add --pairs to output in key="value" format
authorKarel Zak <kzak@redhat.com>
Tue, 10 May 2011 09:16:41 +0000 (11:16 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 10 May 2011 09:16:41 +0000 (11:16 +0200)
commit49e9fd3a0d5b514ca7f4fa107c66ec443ebee7a4
tree074ac9b7f07efa642f9267c4831da120eafa7900
parentd783ee0be02c4ec656bd3f98c02ab19e35456fbb
findmnt: add --pairs to output in key="value" format

... usable in scripts, for example:

findmnt --pairs -o "SOURCE,TARGET,FSTYPE" $1 | while read line; do
        eval $line
        echo "$SOURCE is mounted on $TARGET [$FSTYPE]"
done

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt.c