Use sed instead of perl to do the text processing while printing values

Signed-off-by: Rohit Yadav <rohit.yadav@wingify.com>