warning: here-document at line 7 delimited by end-of-file (wanted `rui')

[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-picture.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 $2}‘ | 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')

时间: 2024-08-06 03:46:50

warning: here-document at line 7 delimited by end-of-file (wanted `rui')的相关文章

Error:warning: here-document at line 18 delimited by end-of-file (wanted `EOF&#39;)

Context: wrote a script to get all ips for product but always get this error. as below: ./getAllIps.sh: line 21: warning: here-document at line 18 delimited by end-of-file (wanted `EOF') How to solve it? Add "set list" at .vimrc Open my script b

An error occurred at line: 1 in the generated java file问题处理

tomcat6启动后,加载jsp页面报错,提示无法将jsp编译为class文件,主要报错信息如下: An error occurred at line: 1 in the generated java file 最后确认该错误原因为:tomcat6不支持jdk1.8版本 修改jdk为1.7,刷新工程,通过!

报错:An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory 加入Myeclipse自带的java EE 6 library即可解决:

Xcode报错 The document “xxx.h” could not be saved. The file doesn’t exist.

记录一个问题 场景:Xcode编辑一个工程时直接在工程内部修改了某个目录的文件夹名字,而后删除了其下的某 .h.m 文件 之后总是提示上述错误且无法强制退出Xcode,clean等操作基本没用 查找本地文件也并未发现被删除的xx.h文件的存在,于是从Xcode工程内又把之前改名的文件夹又改名回去, 这时发现之前本地被删的.h文件又回来了,惊悚之下直接从工程内将该文件夹remove reference.再次删除本地xx.h文件 完成这些后,乖乖的从本地目录先改名再重新导入到工程 以上. 原文地址:

inconsistent line endings 解决方法

?? I'm using Unity 3D in combination with Visual Studio 2008 on a Windows 7 64 bit system. When saving a cs file in Visual Studio and returning to Unity 3D I always get the following warning: There are inconsistent line endings in the 'someFileName.c

lightoj 1293 - Document Analyzer [ 两指针 + 字符串 ]

传送门 1293 - Document Analyzer   PDF (English) Statistics Forum Time Limit: 3 second(s) Memory Limit: 32 MB You work in a leading software development company. As you are great in coding, most of the critical tasks are allotted for you. You like the ch

mac, xcode 6.1 安装command line tools 支持,autoconf,automake等

以下软件包 都去我的环境库找到 1 先安装 tcl库 2 安装macports /opt/local/bin/port 一般装到这里 安装autoconf时提示: Warning: The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build. Warning: Install them by running `xcode-select --install'.

document.write() 和 document.writeln() 区别

document.write()和document.writeln()有什么区别 解决思路:     两者都是JavaScript向客户端输出的方法,对比可知写法上的差别是一个ln--line的简写,换言之,writeln 方法是以行输出的,相当于在 winte 输出后加上一个换行符. 具体步骤: 1.打开一个空白窗口. window.open() 2.用 write 方法向空白窗口写入代码. document.write("Line 1") document.write("

WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.

今天使用python命令行出现 WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. 作为一个强迫症,当然是不能忍,必须升级到最新的. 然而按照提示输入 python -m pip install --upgrade pi