SED - replace text in file on specific line
I have the following sed command
sed -e '56s/allow/disallow/g' restrict.txt
It outputs the correct results to the console...however I want it to write the changes back to the file restrict.txt. I tried:
sed -e '56s/allow/disallow/g' restrict.txt > restrict.txt but I end up with a blank txt file.
|