Why doesn't the bash script?

exact same problem

ubuntugeeks.com/questions/24482/how-to-undo-apt-ge...

at the end of a bash script

echo '#!/bin/bash' > restore
echo sudo apt-get install 'grep Remove /var/log/apt/history.log | tail -1 | sed -e 's|Remove: ||g' -e 's|([^)]*)||g' -e 's|:[^ ]* ||g' -e 's|,||g" >> restore


but swears on line 2
spoiler
5afb4e3e68c09797593116.jpeg

what's wrong with the script?
June 5th 19 at 21:52
2 answers
June 5th 19 at 21:54
But it is not necessary to run each script, which you will find on the Internet. It could easily be setting cryptainer.
June 5th 19 at 21:56
Compare the first and second rows. The answer is before my eyes.
when copying is also not working - Beth.Gleaso commented on June 5th 19 at 21:59
and it shouldn't.

tip - in echo command is an argument. In the first case it is in single quotes and is perceived as a string... And the second - no quotes. It means the team and it should be implemented. That poor bash and trying apparently... - Reb commented on June 5th 19 at 22:02

Find more questions by tags bashLinux