cli - tee

最後更新: 2023-09-18

介紹

tee - read from standard input and write to stdout and file

目錄


Usage

 

tee [OPTION]... [FILE]...

Opts

-a, --append              append to the given FILEs, do not overwrite

Example

#

result=abc
echo $result | tee -a $hash_file | cat

# 同時建立 wireguard 的 pri & pub key

wg genkey | tee /dev/stderr | wg pubkey

wg genkey | tee privatekey | wg pubkey > publickey