Daily Archive: 8월 13, 2004

[shell] bash shell echo multiline 출력시

[shell] bash shell echo multiline 출력시

multi-line 출력을 할 때 here document를 쓰면 편합니다. 예를 들어, echo “DEVICE=eth0” > /etc/sysconfig/network-script/ifcfg-eth0 echo “BOOTPROTO=static” >> /etc/sysconfig/network-script/ifcfg-eth0 echo “IPADDR=$eth0”...