Skip to content
Advertisement

How to get one line from a print output in linux?

I’m trying to pull one line from a subprocess.check_output but so far I have no luck. I’m running a Python script and this is my code:

JavaScript

and this is what I get back when I run the script:

JavaScript

Now I want to get the 9th line (RMS amplitude) out of this list. I already tried something with sed but it didnt gave anything back:

JavaScript

Thank You

Advertisement

Answer

What about grep-ing the line ?

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement