Mac — Replace clipboard text with regex in console I noticed today. We can edit Mac's clipboad directly by pbcopy and pbpaste commands combination. pbpaste | sed 's/Bob//g' | pbcopy