Posts Tagged: bash

Joining Multi-line Output with Paste

Shell

I was checking the memory on approximately 140 servers using ansible:

but the output appears over several lines e.g.

but what I wanted was the server name and the total memory available. So I first grepped the output to remove the lines I didn’t want e.g.

leaving me with two lines of… Read more »

Batch Auto-Levels on Images

I had a thousand image files the kids had photographed when creating a stop motion video. An ‘auto-levels’ on many of the images was required to brighten them up so at the command line I used the following (with ImageMagick already installed of course):

ImageMagick is impressive – getting through each image in under… Read more »