I would like to replace a line in file which start with the content of variable
5473 12G Ju 2 06:32 part3 5423 11G Ju 6 07:32 part4 573 11G Ju 2 08:21 part5 5473 11G Ju 6 09:12 part6 5423 1G Jl 6 09:32 part7
sed now but taking too much time to do the same.
sed code is given below.
Now I'll find and delete the line starts with
$cont and write the
$cont to the file.
cont="foo" newLineCont ="this is new line" parallel -a test.txt -k --block 30M --pipe-part "sed -i /^$cont/d" test.txt echo $newLineCont >> test.txt
wanted to search and replace lines in the file which starts with the content of the variable $cont by content of $newLineCont using AWK