Общий шаблон будет:
sed -e 's/pattern/replacement/' filename
С:
-e command
Append the editing commands specified by the command argument
to the list of commands.
В вашем случае это может быть, например ::
sed -e 's/\[.*\]//' yourfilename.log
Обратите внимание, что [.*]
будет работать правильно, если у вас нет дополнительных ]
символов в строке.