当前位置:网站首页>echo -e用法
echo -e用法
2022-07-17 00:16:00 【世上无难事754】
echo -n 表示不换行输出
echo -e 将转义后的内容输出到屏幕上;
常用的转义字符如下:

[[email protected] ~]# echo -e "abc\b"
abc
[[email protected] ~]# echo -e "abc\bde"
abde

[[email protected] ~]# echo -e "abc\cdef"
abc[[email protected] ~]#
[[email protected] ~]# echo -e "abc\c"
abc[[email protected] ~]#

[[email protected] ~]# cat a.sh
#!/bin/bash
echo -e "abc\nde"
[[email protected] ~]# sh a.sh
abc
de

[[email protected] ~]# cat a.sh
#!/bin/bash
echo -e "abc\fde"
[[email protected] ~]# sh a.sh
abc
de

[[email protected] ~]# cat a.sh
#!/bin/bash
echo -e "abc\tde"
[[email protected] ~]# sh a.sh
abc de
cho -e “abc\tde”
[[email protected] ~]# sh a.sh
abc de
边栏推荐
- Chapter 1 - multi agent system
- The jstat command checks the GC status of the JVM
- uni app 微信小程序 点餐系统【再来一单】页面跳转
- Use of sqlmap
- [antv G2] how to add a click event to the line chart (click anywhere to get the value of the point on the line)
- Shell脚本case分支语句、扒匿名登录FTP的max地址
- The JMeter BeanShell implementation writes the parameterized data generated by the request to the file
- In depth performance test data analysis
- 通过Xshell7使用rz,sz命令上传下载文件
- Nmon使用方法
猜你喜欢

安装软件提示无法定位程序输入点AddDllDirectory于动态链接库Kernel32.dll上(文末有下载地址)

静态路由(详)

WINRAR命令拷贝指定文件夹为压缩文件,调用计划任务进行备份。

Leetcode buckle classic topic - 82 Maximum rectangle in column chart

使用Grafana8.5.2显示zabbix6.0的信息

Flask template injection

Sword finger offer 48 The longest substring without repeated characters

Use JMeter to test services based on websocket protocol

【瑞吉外卖⑩】Linux 粗略学习 & Redis 粗略学习

网络一般知识(详)
随机推荐
D - Parity game离散化+带权并查集
登录功能的测试点大全
仅以此篇纪念负数取模
初识阿里云环境搭建:无法远程连接,入过的坑:服务器ping不通,FTP搭建,服务器搭建数据库,远程连接服务器数据库
Understand HTTP cache in 30 minutes
No, no, No. yesterday, someone really didn't write binary enumeration
接口(Collection/Map)- 各接口的实现与对比
Response assertion of JMeter interface test
Find() (if the name is used by too many people, I will add words)
[antv G2] how to solve the memory leak caused by G2
安装.NET提示“无法建立到信任根颁发机构的证书链”(方法简单有下载地址)
Dirty reading, unreal reading, non repeatable reading
status 500 reading AftersaleService#getAftersaleList(Long)+com. sun. proxy.$ Proxy214.getAftersaleList
安装软件提示无法定位程序输入点AddDllDirectory于动态链接库Kernel32.dll上(文末有下载地址)
Use of sqlmap
Post man JSON script to JMX script of JMeter
Experience in using flow playback tool Gor
JMeter response time test component & multi interface concurrency
This article only commemorates the modulus of negative numbers
Flyway的SaaS多租户实现方案