vendredi 2 janvier 2015

How to use Varibles in Sed command


I am trying to run:



sed -i "/$variable/c \$variable1' file.txt


But it's not displaying any change in the file file.txt


But the same command, without the variable works fine



sed -i "/variable/c \variable1' file.txt


Aucun commentaire:

Enregistrer un commentaire