Changes between Version 1 and Version 2 of Ticket #696, comment 1


Ignore:
Timestamp:
Jun 5, 2013, 8:26:38 PM (12 years ago)
Author:
victor gattegno

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #696, comment 1

    v1 v2  
    11Sorry, it was right, if for example %s=VGDD0.
    22
    3 But, in the awk, shouldn't it be the following ?
     3But, after awk, shouldn't it be the following ?
    44
     5(print instead of printf, and I added a third VG for the third %s)
    56{{{
    67mr_asprintf(&command, "mount 2>/dev/null|grep -E \"/dev/mapper/%s-|/dev/%s/\"|awk '{print(\"%%s \",$3)}END{print \"\"}'", VG, VG, VG);
     
    1314/dev/mapper/VGDD0-LVDD0 on /mnt/data0 type ext3 (rw)
    1415
    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
     16# mount 2>/dev/null|grep -E "/dev/mapper/VGDD0-|/dev/VGDD0/" |awk '{print("%VGDD0 ",$3)}END{print ""}'
     17%VGDD0 /mnt/data0
    1718}}}