Answer the question
In order to leave comments, you need to log in
How to display only the lines you need after processing a command in bash?
there is the output of the eyeD3 ~/some.mp3 command like this:
some.mp3 [ 7.15 MB ]
-------------------------------------- ------------------------------
Time: 03:07 MPEG1, Layer III [ 320 kb/s @ 44100 Hz - Joint stereo ]
------------------------------------ ------------------------------
ID3 v2.3:
title: Brontosaurus artist: Topher Mohr and Alex Elena
album: YouTube Audio Library year: None
boo
track: genre: Rock (id 17)
Answer the question
In order to leave comments, you need to log in
eyeD3 ~/some.mp3 | grep album | cut -d':' -f2 | sed 's/year//' | sed 's/^ *//;s/ *$//'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question