Changes between Version 1 and Version 2 of Ticket #696, comment 1
- Timestamp:
- Jun 5, 2013, 8:26:38 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #696, comment 1
v1 v2 1 1 Sorry, it was right, if for example %s=VGDD0. 2 2 3 But, in theawk, shouldn't it be the following ?3 But, after awk, shouldn't it be the following ? 4 4 5 (print instead of printf, and I added a third VG for the third %s) 5 6 {{{ 6 7 mr_asprintf(&command, "mount 2>/dev/null|grep -E \"/dev/mapper/%s-|/dev/%s/\"|awk '{print(\"%%s \",$3)}END{print \"\"}'", VG, VG, VG); … … 13 14 /dev/mapper/VGDD0-LVDD0 on /mnt/data0 type ext3 (rw) 14 15 15 # mount 2>/dev/null|grep -E "/dev/mapper/VGDD0-|/dev/VGDD0/" |awk '{print( $1, $3)}END{print ""}'16 /dev/mapper/VGDD0-LVDD0/mnt/data016 # mount 2>/dev/null|grep -E "/dev/mapper/VGDD0-|/dev/VGDD0/" |awk '{print("%VGDD0 ",$3)}END{print ""}' 17 %VGDD0 /mnt/data0 17 18 }}}