单行文本:
#!/bin/bash
echo "192.168.85.24 tsedb">> /etc/hosts
多行文本:
<
#!/bin/bash
cat > /etc/security/limits.conf<< EOF
#tsedb SETTING
tsedb soft nproc 16384
tsedb hard nproc 16384
tsedb soft nofile 16384
tsedb hard nofile 65536
tsedb soft stack 10240
tsedb hard stack 32768
tsedb hard memlock 8000000
tsedb soft memlock 8000000
EOF
Original: https://www.cnblogs.com/Sungeek/p/13582025.html
Author: Tse先生
Title: shell echo单行和多行文字定向写入到文件中
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/529759/
转载文章受原作者版权保护。转载请注明原作者出处!