1)
df | grep -e sd -e mapper|awk '{print "echo \"" $6" 10.40.32.49(ro,sync,no_root_squash)\" >> /etc/exports"}'|sh -x
2)
df | grep -e sd -e mapper|awk '{print "echo \"" $6" 200.200.200.1(rw,sync,no_root_squash)\" >> /etc/exports"}'|sh -x
°á°ú°ª
3)
df | grep AS-IS | awk '{print "umount "$6" " }' |sh -x
4)
df | grep To-be | awk '{print "umount "$6" " }' |sh -x
°á°ú°ª
[root@int-xcp5 ~]# df | grep To-be | awk '{print "umount "$6" " }' |sh -x
+ umount /To-be/xwmdevwb/was
+ umount /To-be/xwmdevwb/was_IBM
+ umount /To-be/xwmdevwb/airnavx
+ umount /To-be/xwmdevwb/kaltdms
+ umount /To-be/incgodevap2/was