use tee command to redirect output to a file in a non-existent dir

前端 未结 4 2482
攒了一身酷
攒了一身酷 2021-02-20 02:22

I am trying to use the tee command to redirect output to a file, and I want the file to be created in a dir which is yet to be created.

date | tee new_dir/new_fi         


        
4条回答
提交回复
热议问题