Warning:here-document at line 7 delimited by End-of-file (wanted ' Rui ')

Source: Internet
Author: User

[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 ')

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.