Hi All,
I am trying to use a variable within the sed command but I am not able to get the output.
When I am using the following command (without variable) its working fine:
sed -n '/2011\/12\/10 18:11:11./,$p' < Log.txt > Delta_Log.txt
But when I am putting the value 2011\/12\/10 18:11:11. in variable date_str and then use the variable, there is no output.
Have tried the following syntax's:
sed -n '/$date_str/,$p' < Log.txt > Delta_Log.txt
sed -n '/"$date_str"/,$p' < Log.txt > Delta_Log.txt