Changes between Initial Version and Version 1 of Ticket #696, comment 1
- Timestamp:
- Jun 5, 2013, 8:22:37 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #696, comment 1
initial v1 1 Sorry, if for example %s=VGDD0, then it should be : 1 Sorry, it was right, if for example %s=VGDD0. 2 3 But, in the awk, shouldn't it be the following ? 2 4 3 5 {{{ 4 mr_asprintf(&command, "mount 2>/dev/null|grep -E \"/dev/mapper/%s-|/dev/%s \"|awk '{printf(\"%%s \",$3)}END{print \"\"}'", VG, VG);6 mr_asprintf(&command, "mount 2>/dev/null|grep -E \"/dev/mapper/%s-|/dev/%s/\"|awk '{print(\"%%s \",$3)}END{print \"\"}'", VG, VG, VG); 5 7 }}} 8 9 Example : 10 11 {{{ 12 # mount 2>/dev/null|grep -E "/dev/mapper/VGDD0-|/dev/VGDD0/" 13 /dev/mapper/VGDD0-LVDD0 on /mnt/data0 type ext3 (rw) 14 15 # mount 2>/dev/null|grep -E "/dev/mapper/VGDD0-|/dev/VGDD0/" |awk '{print($1, $3)}END{print ""}' 16 /dev/mapper/VGDD0-LVDD0 /mnt/data0 17 }}}