set of *.jpg files copied to ubuntu. Command performed identify *.jpg > B1882_dimensions.txt Copied back to Windows Saved to B1882_dimensions.txt Search and replace ^(Beschi-1882__([0-9]+)\.jpg) JPEG ([0-9]+)x([0-9]+) (.+sRGB) ([0-9]+B) (0.+)$ BY \2\t\1\t\3\t\4\t\6\t\5\t\7