There's something I'm having trouble understanding concerning sed behavior.
sed -n "/pattern/,$p" < input.inp > output.out
gives the following error
sed: -e expression n°1, caractère 10: `,' inattendue
(my system is in french).
sed -n '/pattern/,$p' < input.inp > output.out
Works fine
I've personnally used commands like
sed -n "/begin/,/end/p" < input.inp > output.out
with both single or double quotes, and they work just fine.
In case it's useful, I have sed version: sed (GNU sed) 4.2.2
Aucun commentaire:
Enregistrer un commentaire