Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは、clobber / noclobber 機能の反対です。ファイルが既に存在する場合にのみ、ファイルを更新したい。複数のコマンドで実行できることはわかっていますが、それを実行できる単一のオペレーターはありますか?
私が考えることができる最も近いのは[[ -f "$filename" ]] && do something > "$filename"
[[ -f "$filename" ]] && do something > "$filename"
I RTFMed and the operator does not exist yet.