#! /usr/bin/env bash # # Replace timestamps of the form "2013-03-27-23-07-55" with Xs sed 's/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}-[0-9]\{2\}-[0-9]\{2\}-[0-9]\{2\}/XXXX-XX-XX-XX-XX-XX/'