当前位置: 首页 > news >正文

桂林市防疫最新政策搜索引擎优化的主要手段

桂林市防疫最新政策,搜索引擎优化的主要手段,做酒的网站有哪些,西安seo搜推宝永久重定向 1.脚本中有大量数据需要重定向,那么逐条重定向所有的 echo 语句会很烦琐。 这时可以用 exec 命令,它会告诉 shell 在脚本执行期间重定向某个特定文件描述符: $ cat test10 #!/bin/bash # redirecting all output to a file ex…

永久重定向
1.脚本中有大量数据需要重定向,那么逐条重定向所有的 echo 语句会很烦琐。
这时可以用 exec 命令,它会告诉 shell 在脚本执行期间重定向某个特定文件描述符:

$ cat test10 
#!/bin/bash 
# redirecting all output to a file 
exec 1>testout 
echo "This is a test of redirecting all output" 
echo "from a script to another file." 
echo "without having to redirect every individual line" 
$ ./test10 
$ cat testout 
This is a test of redirecting all output 
from a script to another file. 
without having to redirect every individual line 
$

2.exec 命令会启动一个新 shell 并将 STDOUT 文件描述符重定向到指定文件。脚本中送往STDOUT 的所有输出都会被重定向。
也可以在脚本执行过程中重定向 STDOUT:

$ cat test11 
#!/bin/bash 
# redirecting output to different locations 
exec 2>testerror 
echo "This is the start of the script" 
echo "now redirecting all output to another location" 
exec 1>testout 
echo "This output should go to the testout file" 
echo "but this should go to the testerror file" >&2 
$
$ ./test11 
This is the start of the script 
now redirecting all output to another location 
$ cat testout 
This output should go to the testout file 
$ cat testerror 
but this should go to the testerror file 
$

http://www.dt0577.cn/news/13311.html

相关文章:

  • 黑龙江建设厅网站账户竞价托管费用
  • 佛山网站建设品牌网站收录入口申请查询
  • 网站市场推广500强企业seo服务商
  • 美国外贸网站建设镇江百度推广公司
  • 品牌网站官网seo简单速排名软件
  • 哈尔滨百度seo公司抖音搜索seo代理
  • 北京活动网站制作自己如何建立网站
  • 百色做网站百度热搜榜排行
  • 企业官方网站如何做蓝v认证武汉网络推广自然排名
  • 网站建设的价值是什么网络推广服务外包
  • 老域名重新做网站seo关键词排名优化报价
  • 国外销售网站怎样建设怎么让百度搜出自己
  • 京东网站建设过程百度竞价最低点击一次多少钱
  • 顺德网站设计成人用品推广网页
  • 打码网站怎么做品牌宣传文案范文
  • 门户网站源码入驻app开发费用
  • 做色情网站需要多少钱广告图片
  • 排版设计说明系统优化大师
  • 免费网站建设知识百度网络推广怎么收费
  • 做网站加模块长治seo顾问
  • 想建一个自己的网站北京seo优化wyhseo
  • 视频直播网站建设费用百度一下你就知道官网网页版
  • 深圳福田网站优化网络营销培训学校投资网站建设方案
  • 主做收影视出版的小说网站软文
  • 网站建站案东营优化路网
  • 学校网站怎么查询录取长沙网站制作推广
  • 设计网站包含的功能模块网络推广员的前景
  • 可以免费做宣传的网站长春网站制作系统
  • 做网站时需要注意什么semester是什么意思
  • 茶山东莞网站建设推广引流话术