[Root@yrzl-cloud-aio ~]# SH b.sh
B.sh:line 12:warning:here-document at line 7 delimited by End-of-file (wanted ' Rui ')
B.sh:line 13:syntax error:unexpected End of file
[Root@yrzl-cloud-aio ~]#
[Root@yrzl-cloud-aio ~]#
[Root@yrzl-cloud-aio ~]# ls
Anaconda-ks1.cfg centos-7-x86_64-dvd-1511.iso ifcfg-enp9s0 ISO ll m.sh packages Qinrui rr Sou Yr-cloud-picture-static-ip.iso
Anaconda-ks.cfg i ins-packages k.sh mmmm n.sh pgs R rrrr Wget-log
b.sh ifcfg-enp8s0 i.sh ks.sh mn package p.sh rpmbuild Ruiy yr-cloud-pic Ture.iso
[Root@yrzl-cloud-aio ~]#
[Root@yrzl-cloud-aio ~]#
[Root@yrzl-cloud-aio ~]# Cat b.sh
#!/bin/bash
I=0
For Ifmacs in ' ifconfig | grep ether | Awk-f ' {print $} ' | Head-n 2 '
Do
#echo $ifMacs
if [-z/etc/udev/rules.d/70-persistent-ipoib.rules];then
Cat >>/etc/udev/rules.d/70-persistent-ipoib.rules <<rui
Subsystem==\ "Net\", action==\ "add\", drivers==\ "? *\", attr{address}==\ "${ifmacs}\", attr{dev_id}==\ "0x0\", ATTR{ Type}==\ "1\", kernel==\ "eth*\", name=\ "eth{i}\"
Ruiy
Fi
i=$ ((i + 1))
Done
[Root@yrzl-cloud-aio ~]#
Warning:here-document at line 7 delimited by End-of-file (wanted ' Rui ')