每天一命令(9)echo (display a line of text)
来源:互联网 发布:java数据输入 编辑:程序博客网 时间:2024/06/07 09:37
echo (display a line of text)
man echo 查看命令文档
-n do not output the trailing newline 输出不换行
-e enable interpretation of backslash escapes 让转义字符起作用
-E disable interpretation of backslash escapes (default) 禁用转义字符
下面栗子:
root@myql01 ~# echo 123123root@myql01 ~# echo $PATH/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/binroot@myql01 ~# echo `date`Mon Jun 13 10:41:11 CST 2016root@myql01 ~# echo datedateroot@myql01 ~# echo "date"dateroot@myql01 ~# echo "$HOME"/rootroot@myql01 ~# name=zhangsanroot@myql01 ~# echo $namezhangsanroot@myql01 ~# echo "1234556\n123123";1234556\n123123root@myql01 ~# echo -e "1234556\n123123";1234556123123root@myql01 ~# echo -n "1234556\n123123";1234556\n123123root@myql01 ~# echo -ne "1234556\n123123";1234556123123root@myql01 ~# echo {1..10}1 2 3 4 5 6 7 8 9 10root@myql01 ~# echo {a..z}a b c d e f g h i j k l m n o p q r s t u v w x y z
0 0
- 每天一命令(9)echo (display a line of text)
- echo - display a line of text
- 每天一命令(16)top - display Linux tasks
- Display certain line(s) from a text file in Linux.
- 每天一个命令(20) cut (remove sections from each line of files)
- SMIT requires a minimum of 24 line by 80 column output display
- 每日一命令(13)free - (Display amount of free and used memory in the system)
- Linux 每天一命定之echo
- 执行 smitty 报错 "1800-005 SMIT requires a minimum of 24 line by 80 column output display."
- Display Rich Text Using a UIWebView
- Centering Single-Line text in a canvas
- 每天一命令-more
- Linux 命令每日一练:echo命令
- Echo指南(一)
- Echo (一)
- How to display a line break with outputText?
- Display selected items of a checkboxlist
- Enumerating Child Devices of a Display Adapter
- 【JavaScript】难点2-闭包
- 面试题10:二进制中1个个数
- 解决drawable图片变形
- 我所认识的PHP(三)
- iOS开发让Xcode的控制台支持LLDB类型的打印
- 每天一命令(9)echo (display a line of text)
- IIS7.0上传文件限制29M解决方法
- 黑马程序员:2000字带你回顾2016WWDC
- mysql索引的类型和优缺点
- 数据运算的重载
- 14.3.2.2 autocommit, Commit, and Rollback 自动提交 提交和回滚
- 资源首页
- studio svn添加忽略文件代码
- Connect phone with wifi