基本内部命令

发布时间:2016-12-7 3:52:28 编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"基本内部命令",主要涉及到基本内部命令方面的内容,对于基本内部命令感兴趣的同学可以参考一下。

read 多行输入以 \ 结尾然后换行 最后以单独的换行为结束符号 [[email protected] leo]# cat internalorder.sh #!/bin/sh echo please enter your name: read name echo myname is :$name echo 'read default to defual variable $REPLAY' echo -e "please enter your wife's name": read echo -e "your wife's name is :$REPLY" echo weihongrao >name.txt echo huangjinfeng >>name.txt echo who am i >>name.txt read one two<name.txt echo $one echo $two echo 'read context from txt' while read line do   echo "$line" done <name.txt echo get data from two files echo echo weihongrao >name.txt echo huangjinfeng >name2.txt cat name.txt name2.txt | while read line do   echo "$line" done echo "use eval to exe order from variable" var="echo my name is weihongrao" eval $var

上一篇:《算法竞赛-训练指南》第三章-3.6_LA 3027(并查集)
下一篇:按行循环read 文件

相关文章

关键词: 基本内部命令

相关评论