Answer the question
In order to leave comments, you need to log in
How to remove brackets from all output lines?
There is a file with the list of hosts. Using the fping command, I get the result in the form:
host1 is alive (30 ms)
host2 is alive (22 ms)
How can I remove these brackets from the output? Next, I can sort the hosts by ping time with sort -nk4.
upd: I will add an explanation: the result should be in the form host1 is alive 30 ms
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question