Categories
How to append "&" to the end of a line in sed?
There is a command sed -i -e 's#$# log1.txt &#' $outfile It should add log1.txt & at the end of each line. The command works fine, but the & icon is not added Please help to solve this issue
sed -i -e 's#$# log1.txt &#' $outfile
Answer the question
In order to leave comments, you need to log in
Need to escape &sed -i -e 's#$# log1.txt \&#' $outfile
sed -i -e 's#$# log1.txt \&#' $outfile
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question