I am searching for a pattern in a file .
The file content is in a single line.If am doing a grep or sed for the a particular pattern am getting whole file.
I want the result in different lines.
attaching the file for reference
search pattern "/xxxxxx/hhhh/tttttttt/sss/" and "/aaaa/bbbbbbbb/dddd_ddddd/ggg/ccccccccccccc/mmmm/eeeeee/iiiii"
if the whole file is one continuous line then grep will not help you, as it is line oriented (and so is sed). You could write a sed expression to only output the matched text using back references, but as your search expression contains only constants, what would be the point?