$ cat ~/.ssh/id_rsa.pub | pbcopy

And of course, if you’ve been following along for a week or two, you know
that this (BING!) is a Useless Use of Cat!

Rememeber, nearly all cases where you have:

cat file | some_command and its args …

you can rewrite it as:

<file some_command and its args …

http://porkmail.org/era/unix/award.html#uucaletter

;)

--

--

I’m a Senior Software Developer at Flick Electric where I write mostly Ruby on Rails. I also dabble in any language that takes my fancy.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Henley (He/Him)

Adam Henley (He/Him)

I’m a Senior Software Developer at Flick Electric where I write mostly Ruby on Rails. I also dabble in any language that takes my fancy.