Redirector Function

Redirector Function

cmd1 | cmd2
Pipe; take standard output of cmd1 as standard input to cmd2

> file
Direct standard output to file

< file
Take standard input from file

>> file
Direct standard output to file; append to file if it already exists

>| file
Force standard output to file even if noclobber is set

n>| file
Force output to file from file descriptor n even if noclobber is set

<> file
Use file as both standard input and standard output

n<> file
Use file as both input and output for file descriptor n

<< label
Here-document; see text

n> file
Direct file descriptor n to file

n< file
Take file descriptor n from file

n>> file
Direct file descriptor n to file; append to file if it already exists

n>&
Duplicate standard output to file descriptor n

n<&
Duplicate standard input from file descriptor n

n>&m
File descriptor n is made to be a copy of the output file descriptor

n<&m
File descriptor n is made to be a copy of the input file descriptor

&>file
Directs standard output and standard error to file

<&-
Close the standard input

>&-
Close the standard output

n>&-
Close the output from file descriptor n

n<&-
Close the input from file descriptor n
  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值