I am using the below command but while running the command in linux, getting the below error.
sed -n \'/^[2015/01/01 03:46/,/^[2015/01/01 03:47/p\' < Inpu
"[" is a special character in regex. You would need to escape it and use it like:
sed -n '/^\[2015\/01\/01 03:46/,/^\[2015\/01\/01 03:47/p' Input.txt Output: [2015/01/01 03:46] INFO .... [2015/01/01 03:46] ERROR .... [2015/01/01 03:47] INFO ....