The print command (Korn shell only)
来源:互联网 发布:leap计算软件 编辑:程序博客网 时间:2024/06/05 20:43
在学习co-process时,用到print -p $var 来进行通信,当时不太理解这个~~
In the Korn shell, print is preferred toecho. print is built in to the shell and behavesjust like echo and recognizes the same escape commands. Italso accepts the following options:
-- Anything following the - is processed as an argument, even if itbegins with a -.
-R- The escape conventions (commands beginning with /) areignored. Anything following the -R (except a -n)is treated as an argument, even if it begins with a ``-''.
-n- print does not append a newline to its output.
-p- If you have started a co-process running with the |&command (see``More about redirecting input and output''),the -p flag makes print send its output to theco-process via a pipe.
-r- print ignores the - escape commands and printstheir literal value (that is, a backslash followed by the escapecommand letter).
-s- print sends its output to the history file. This enablesyou to add commands to your history file from a shell script withoutexecuting them; you can subsequently recall or edit them rapidly,without needing to re-type them.
-un- print sends its output to file descriptor n.
The -u option is equivalent to redirecting the standardoutput, but doesn't open or close the destination file. This isparticularly useful if you have opened some files in kshand want to write data to them (for later reading with theread command); see``More about redirecting input and output''.)
- The print command (Korn shell only)
- The Interrupt handling in Korn shell and C Shell
- Wiki: Korn shell
- Korn Shell 脚本入门
- Korn Shell Notes(II)
- korn Shell Notes(III)
- Korn Shell Notes(IV)
- Korn Shell Notes(V)
- Korn Shell(ksh)学习
- Korn shell scripts
- Korn Shell 脚本入门
- Linux Shell 通配符、元字符、转义符使用实例介绍--Learning the korn shell
- oracle与ksh(Korn Shell)
- Korn Shell(简称ksh)
- Korn Shell(K Shell) Notes (I)
- Korn Shell的"r"命令+“history"命令
- Korn Shell中IFS的妙用
- Bourne Shell C Shell Korn Shell POSIX Shell
- Sqlite存储介绍
- 微软为硬件厂商描述基于Windows平台的商业机会
- 在Windows XP上安装Oracle11gR2时出错
- frameset的操作
- LinkedList,ArrayList和Vector
- The print command (Korn shell only)
- C语言存储类型
- 一个过滤特殊字符的JS!
- POJ 1163 The Triangle
- 技术没有头
- VC虚函数布局引发的问题
- 深入理解Android消息处理系统——Looper、Handler、Thread
- 记珠海一游
- 网络选择 | Phone | 自定义ListPreference | Handler | 切换网络的AT指令