首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏科技前线

    升级Bash修复Shellshock漏洞

    end-of-file (wanted `EOF') bash: warning: here-document at line 0 delimited by end-of-file (wanted ` EOF') bash: warning: here-document at line 0 delimited by end-of-file (wanted `EOF') bash: warning: here-document end-of-file (wanted `EOF') bash: warning: here-document at line 0 delimited by end-of-file (wanted ` EOF') bash: warning: here-document at line 0 delimited by end-of-file (wanted `EOF') bash: warning: here-document EOF') bash: warning: here-document at line 0 delimited by end-of-file (wanted `EOF') bash: warning: here-document

    2.2K20发布于 2018-08-29
  • 来自专栏技术汇

    在bash中"cat << EOF"是如何工作的

    here-documents的格式是: <<[-]word here-document delimiter 在word上不执行参数扩展 如果word中的任何字符被加引号,则分隔符是word中删除引号的结果,并且here-document中的行不会展开。 如果word没有加引号,那么here-document的所有行都要进行参数扩展、命令替换和算术扩展。

    1.7K10编辑于 2023-12-28
  • 来自专栏self_study

    SHELL(bash)脚本编程三:重定向

    bash root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash 7、Here Documents <<[-]word here-document delimiter 此处的word不能扩展,如果word中有任何字符被引用(如前引用部分),delimiter是word去除引用后剩余的字符,并且here-document中的词都不会被shell解释 如果word没有被引用,here-document中的词可以经历变量扩展、命令替换和数学扩展(和双引号的情况类似)。 如果重定向操作符是<<-,那么处于here-document中的开头tab字符将会被删除。 8、Here Strings <<<word 这里word的扩展结果会作为字符串被重定向。 脚本举例: #!

    2.1K30发布于 2019-04-11
  • 来自专栏Go与云原生

    Dockerfile 支持内置Shell脚本, 从此告别 && 链接符号

    关于 Dockerfile Here-Document 的测试和介绍文章, 点击图片跳转链接 重新看了 docker 官网文档关于 buildkit[2] 的介绍, 从 docker engine 23.0 一句话总结:不仅指支持多行语法, 是直接支持内置 Shell 脚本 超级棒的 Dockerfile Here-Document Syntax 语法 首先, 按照官网文档将 docker engine 版本升到最新

    1.1K10编辑于 2023-09-07
  • 来自专栏技术汇

    使用SSH连接远程主机并执行多个Bash命令最优雅的方法是什么

    回答 使用 Here-Document: ssh user@remote_host << EOF 命令1 命令2 命令3 EOF 不过这样执行会有一个问题: 输出信息的开头都有一句提示 "Pseudo-terminal

    94110编辑于 2024-08-14
  • 来自专栏又见苍岚

    docker - 占满根目录空间的解决方案

    cannot create temp file for here-document: No space left on devic 可以看到 /已经没有空间了 $ df -h Filesystem

    1.9K30编辑于 2022-08-05
  • 来自专栏bisal的个人杂货铺

    shell常见问题系列

    需要注意的是,第一个EOF必须以重定向字符<<开始,第二个EOF必须顶格写,否则会报错,例如, test.sh: line X: warning: here-document at line X delimited

    94720发布于 2019-10-22
  • 来自专栏solate 杂货铺

    linux bash shell 特殊字符大全

    << 双小于号(here-document[double less then marks])。 这个也被称为Here-document,用来将后继的内容重定向到左侧命令的stdin中。 使用here-document的时候,你可以保留空格,换行等。如果要让shell脚本更整洁一点,可以在<<和终止符之间放上一个连字符(-)。 <<< 三个小于号(here-strings)。 Here-字串和Here-document类似,here-strings语法:command [args] <<<["]$word["];$word会展开并作为command的stdin。 << 双小于号(here-document[double less then marks])。 这个也被称为Here-document,用来将后继的内容重定向到左侧命令的stdin中。 使用here-document的时候,你可以保留空格,换行等。如果要让shell脚本更整洁一点,可以在<<和终止符之间放上一个连字符(-)。 <<< 三个小于号(here-strings)。

    8K30发布于 2019-07-22
  • 来自专栏linux 自动化运维

    Linux ssh 无法登录,循环登录:输入密码登录后闪一下又回登录界面

    密码登录返回登录界面: 解决:注释掉 /root/.bash_profile 文件的所有内容 3. linux 命令 table 补全报错: bash: cannot create temp file for here-document

    7.7K00发布于 2021-08-04
  • 来自专栏用户7721898的专栏

    shell脚本快速入门之-----Here document使用方法总结

    一、什么是Here Document Here Document也被称为here-document/here-text/heredoc/hereis/here-string/here-script,在Linux

    2.2K30发布于 2020-09-03
  • 来自专栏东隅已逝

    zabbix-server添加了网络设备模板导致boot.log占满根目录不能ssh登陆

    :28:19 2019 from 10.16.75.35 /root/.pyenv/libexec/pyenv-init: line 131: cannot create temp file for here-document

    57650发布于 2019-12-13
  • 来自专栏东隅已逝

    zabbix的boot.log占满根目录不能ssh连接

    28:19 2019 from 10.16.75.35 3/root/.pyenv/libexec/pyenv-init: line 131: cannot create temp file for here-document

    96830发布于 2019-12-12
  • 来自专栏AlwaysBeta

    被 Docker 日志坑惨了

    在我使用命令补全时,出现了一条不普通的提示: -bash: cannot create temp file for here-document: No space left on device ls -

    2.1K51发布于 2021-09-24
  • 来自专栏小手冰凉

    保证 Linux 服务器安全基本措施

    /etc/grub.d/00_header: line 361: warning: here-document at line 359 delimited by end-of-file (wanted

    1.6K20发布于 2019-09-10
  • 来自专栏腾讯云数据库(TencentDB)

    开源TBase编译部署详细步骤

    修改目录权限:chown tbase:tbase -R /data/ [image.png] /data/tbase/pgxc_ctl/pgxc_ctl.conf: line 169: warning: here-document

    3.1K81发布于 2020-12-23
  • 来自专栏Docker

    【Docker】MySQL 源码构建 Docker 镜像(基于 ARM 64 架构)

    docker-entrypoint.sh"] EXPOSE 3306 33060 CMD ["mysqld"] 2、docker-entrypoint.sh 说明1:EOF 块代码的缩进做了调整,避免报错 warning: here-document

    1.9K10编辑于 2024-09-02
  • 来自专栏绿盟科技研究通讯

    【云原生攻防研究】Istio访问授权再曝高危漏洞

    /test_istio_jwt_cve.sh: line : warning: here-document at line delimited by end-of-file (wanted `EOF'

    1.9K20发布于 2020-03-26
领券