search by tags

for the user

adventures into the land of the command line

pbcopy & pbpaste

this is gonna change my life...

★ cat some.txt

Hello,

Here's some file contents...

Split over many lines.

Cheers

i was today years old when i discovered mac has a utility called pbcopy. i used to drag my mouse over stuff like this and then press cmd+c. but with pbcopy, i could have just...

★ cat some.txt | pbcopy

an now its on the mac clipboard, so i can alt+tab to a text editor and cmd+p or...

★ pbpaste > newfile.txt

wow

★ cat newfile.txt

Hello,

Here's some file contents...

Split over many lines.

Cheers