comment/uncomment grep output

Hi
I need help to comment/uncomment the output from grep command output within a file from command line using shell script.

# grep -i -p testfs filesystem.out
/TestFs:
        dev             = /dev/TestFslv
        vfs             = jfs2
        log             = /dev/hd8
        mount           = true
        account         = false

Note:Above is the grep output that I want to comment out in filesystem.out file.

Thanks

What exactly is your desired output? From your question and sample data it's not possible to determine exactly what you are trying to do.

Added a note in orginal post to make it more clear.