ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [20171228]windwos批处理echo问题.txt

[20171228]windwos批处理echo问题.txt

原创 Linux操作系统 作者:lfree 时间:2017-12-28 09:32:27 0 删除 编辑

[20171228]windwos批处理echo问题.txt

--//前几天写的文章,链接:http://blog.itpub.net/267265/viewspace-2149205/
--//里面提到windows的自带echo,实现一些特性太"复杂".

--//昨天听朋友介绍安装unxutil包里面自带许多linux命令,这样轻松解决这些问题.我本来就安装这个包.

R:\>D:\tools\linux\usr\local\wbin\echo  -e "set timing off head off; \n select  sysdate  from dual; " | sqlplus -s scott/book@78
2017-12-28 09:27:22

R:\>D:\tools\linux\usr\local\wbin\echo  -e "set timing off head off; \n select  (sysdate+1)  from dual; " | sqlplus -s scott/book@78
2017-12-29 09:30:33

--//只不过要使用全路径名,这样感觉好多了.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/267265/viewspace-2149422/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
熟悉oracle相关技术,擅长sql优化,rman备份与恢复,熟悉linux shell编程。

注册时间:2008-01-03

  • 博文量
    4006
  • 访问量
    7969374