A
A
Antonio2022-04-15 11:09:45
linux
Antonio, 2022-04-15 11:09:45

How to get string from console in bash?

Hello!
I'm trying to figure it out with bash. It is necessary to start the installation of the program from the script and at the end of the installation, the key is displayed in the console, which must be written to a file. For example:

Hit:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
ss://JGDHJGАА

You need to read streaming console output and write the found string " ss://JGDHJGAA " to a file.
How to do it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question