linux - replace null to ""test"" in a file using unix -
i have below pattern in file @ different lines
""key"": null
i want replaceu
""key"": ""test""
through linux
i used below commands:
sed -i 's/ null / ""test"" /' sed -i 's/ null / \"\"test\"\" /'
but failed.
this should it:
sed -i 's/null/\"\"test\"\"/g' file.txt
Comments
Post a Comment