°Ô½Ã¹° 42°Ç
   
[RHEL7] awk print ¸¦ ÀÌ¿ëÇÑ export ³Ö±â umount Çϱâ
±Û¾´ÀÌ : theko ³¯Â¥ : 2018-11-28 (¼ö) 13:45 Á¶È¸ : 2973
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

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com