shell 中如何输出回车符号
补充更好的输出回车符号:
[root@host-public ~]# echo -e "hello \n world"
hello
world
这里加了双引号, 如果不加,就没有效果了:
[root@host-public ~]# echo -e hello \n world
hello n world
这个方法还不错
[root@localhost opt]# cat 2
var='CSDN'
str=$"${var} is not only /n the CSDN"
sstr=$(echo -e $str)
echo "$sstr"
[root@localhost opt]# sh 2
CSDN is not only
the CSDN
shell 中如何输出回车符号相关推荐
- 在shell中常用的特殊符号
在shell中常用的特殊符号罗列如下: # ; ;; . , / \\ 'string'| ! $ ${} $? $$ $* \"string\"* ** ...
- linux脚本除号,shell中常用的特殊符号整理
在shell中常用的特殊符号罗列如下: # ; ;; . , / \ 'string'| ! $ ${} $? $$ $* "string"* ** ? : ^ $# $@ `co ...
- linux系统vim下换行输入_vim 中输入特殊字符回车符号('\r')
回车的含义:将光标移动到行首部 linux 下回车符号为'\r',windows下为'\r\n' linux环境下在vim中输入回车符号方式: 测试方式:我们在一个文本文件中输入一串数字,然后在末尾输 ...
- python在读取配置文件存入列表中,去掉回车符号
self.receiver = map(lambda x: x.strip(), receiver_list) # 去掉list中的回车符号 转载于:https://www.cnblogs.com/s ...
- shell脚本中的一些特殊符号
shell脚本中一些特殊符号 在shell中常用的特殊符号罗列如下: # ; ;; . , / \\ 'string'| ! $ ${} $? $$ $* \"strin ...
- shell中的特殊符号
在shell中常用的特殊符号罗列如下: # ; ;; . , / 'string'| ! $ ${} $? $$ $* "string"* ** ? : ^ $# $@ `comm ...
- shell中符号含义
看这里https://blog.csdn.net/qq_34037046/article/details/86662736 或这里https://www.cnblogs.com/whiteprism/ ...
- shell中符号使用
为什么80%的码农都做不了架构师?>>> 在编写shell脚本时,会经常地使用到单引号.双引号.反引号这些特殊的符号.它们在shell中有着不同的作用,但容易被误用和引起混乱. ...
- linux bash and,linux bash shell中for的用法and示例
关于linux bash shell中的for语句 在linux中shell是必不可少的一部分,但是在bash shell中有while,for,until等循环命令,今天就介绍一下关于for的一些用 ...
最新文章
- 智慧健康,协同发展:清华大学携手天津市共同探索健康医疗大数据
- suse11 oracle11g 安装
- office 2007全屏快捷键|设置
- 删除“已禁用输入法”托盘图标
- linux 线程_Linux 多线程编程(不限Linux)
- 卢伟冰怼荣耀V30相机被喷 卢伟冰:从不打无准备之仗
- HDFS报错:there are 15871 missing blocks,the following files may be corrupted
- linux之pkill命令
- thinkphp5两种分页方法
- oracle 存过 的语法,oracle 存储过程的基本语法_oracle
- 计算机系统如何禁止删除文件,如何彻底删除文件防止恢复【详细介绍】
- 计算机常用英语大全 (中英文对照)
- 如何发送gmail邮件_如何从R和Gmail发送电子邮件
- 计算机提高游戏运行速度的方法,怎么提高游戏运行速度
- 上海个人住房公积金复议材料
- 港大黄凯斌:6G时代的边缘智能,香农与图灵的相遇
- 自定义函数fac1用递推方法求n!,自定义函数fac2用递归方法求n!,主函数中输入整数n(0≦n≦10)后,分别调用函数fac1和函数fac2求n!,最后输出调用的结果值进行对比。
- 共振峰估计2MATLAB
- mysql 5.7的my.ini的位置在隐藏文件夹“ProgramData”下面
- ssh框架整合 hibernate5.2.8_spring4.3.7_struts2.5.1