[英]How to create and open file in one command (Mac terminal)?
等價的一行是什么:1.觸摸example.txt 2.打開example.txt
我已經嘗試了許多管道命令,但是無法正常工作。
只需在同一行的兩個命令之間放置一個分號即可:
touch example.txt; open example.txt
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.