Skip to content
Advertisement

Remove string in file on linux

I am looking to remove the _id field and its value which changes:

JavaScript

I would like to use sed or any other command.

Advertisement

Answer

It is easy with jq.

JavaScript

O/P:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement