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.
tclコマンド区切り文字 '[]' を使用してファイル内の文字列を置き換えようとしていますsed
tcl
sed
例:
string [$HelloWorld]に置き換える必要があり$HelloWordます。括弧がなく、変更するファイルは TCL ファイルであることに注意してください。sedコマンドを使用してそれを行うにはどうすればよいですか?
string [$HelloWorld]
$HelloWord
私はこれを試しました:
sed -i 's@[$HelloWorld]@$HelloWorld@g' <file_path>