S
S
seregareal22018-05-16 00:17:03
linux
seregareal2, 2018-05-16 00:17:03

Why doesn't the bash script work?

same problem
ubuntugeeks.com/questions/24482/how-to-undo-apt-ge...
there is a bash script at the end

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?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Fedoseev, 2018-05-16
@martin74ua

Compare the first and second lines. The answer is in front of your eyes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question