#!/bin/bash s='dimensions: 2560x1600 pixels (676x423 millimeters)' echo $s | sed -E 's/.*\(([0-9]+x[0-9]+).*/\1/'
Standard input is empty
676x423
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!