tThat sed -n "N" was kinda stupid after all - monochromatic - monochromatic blog: http://blog.z3bra.org
 (HTM) git clone git://z3bra.org/monochromatic
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 8eee5784a1612ac6398d40b02961974d8fc3fff2
 (DIR) parent 1a8953ad13ef84f247abb46560cc806c30d25890
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Wed,  2 Apr 2014 14:20:00 +0200
       
       That sed -n "N" was kinda stupid after all
       
       Diffstat:
         M 2014/04/meeting-at-the-bar.txt      |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/2014/04/meeting-at-the-bar.txt b/2014/04/meeting-at-the-bar.txt
       t@@ -213,9 +213,9 @@ You can notice that the info we're interested in sits at the end of the output.
        That will make things easier.
        
            # parse amixer output to get ONLY the level. Will output "84%"
       -    # The 'N' command will join lines, before substituting, so that we can avoid
       -    # piping the output to `uniq`
       -    amixer get Master | sed -n 'N;s/^.*\[\([0-9]\+%\).*$/\1/p'
       +    # we need `uniq` because on some hardware, The master is listed twice in
       +    # "Front Left" and Front Right" (because laptop speakers I guess)
       +    amixer get Master | sed -n 's/^.*\[\([0-9]\+%\).*$/\1/p'| uniq
        
        #### CPU load