Re: [Ilugc] Doubt with passing values in sed command

2013-10-22 Thread Asokan Pichai
On 22 October 2013 12:50, hari prasadh wrote: > How to pass value to sed command as below: > > search_string_error=Oct\ 13 > > sed -i '/$search_string_error/d' error_log > Use double quotes -- that expands shell variables -- Asokan Pichai ___ ILUGC

[Ilugc] Doubt with passing values in sed command

2013-10-22 Thread hari prasadh
How to pass value to sed command as below: search_string_error=Oct\ 13 sed -i '/$search_string_error/d' error_log It is not working properly. how can i achieve removing the line having particular word Please help. -- Thanks & Regards, HariPrasadh __