8 td-trans-mount - Transform mount(1) output to tabular data stream.
12 Supported mount(1) options which affect output format:
16 =item -l (show labels)
22 mount | td-trans-mount
24 mount -l | td-trans-mount
28 no if ($] >= 5.018), 'warnings' => 'experimental::smartmatch';
29 do '/usr/lib/tool/perl5/tabdata/common.pl' or die "$@";
31 @Headers = ("DEVICE", "MOUNTPOINT", "TYPE", "OPTIONS", "LABEL");
32 print join($FS, @Headers).$RS;
38 if(/^(?<DEVICE>\S+) on (?<MOUNTPOINT>\S+) type (?<TYPE>\S+) \((?<OPTIONS>.*?)\)(?: \[(?<LABEL>.*?)\]|)$/)
40 @Fields = map {$+{$_}} @Headers;
41 print join($FS, @Fields).$RS;
45 die "can not parse: $line\n";