Wednesday, November 18, 2015

Edit a file directly using "sed" command in Linux


sed is stream editor, but can edit files directly

sed -i -e 's/foo/bar/g' hello.txt
 
s is used to replace the found expression "foo" with "bar" and g used to

replace any found matches.

-i option is used to edit in place on hello.txt.

-e option indicates a command to run.


JMeter JSON Extractor

      json response {"Key1":"Value1","Key2":"Value2","Key2":"Value2"}  Name of t...