I have a string like this one:
#
pap
which basically translates to a #
pap
and I want to replace it with:
#
pap
python
which translates to #
pap
python
.
Tried this with sed
in a lot of ways but it's not working maybe because sed
uses new lines in a different way. I tried with:
sed -i "s/#
pap/#python
pap/" /etc/freeradius/sites-available/default
...and many different other ways with no result. Any idea how can I do my replace in this situation?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…