CodeFaster

CodeFaster

Share this post

CodeFaster
CodeFaster
Reversing your clipboard

Reversing your clipboard

Tyler Adams's avatar
Tyler Adams
Sep 08, 2023
∙ Paid
2

Share this post

CodeFaster
CodeFaster
Reversing your clipboard
Share

Have you ever had a list in a website that you wanted to reverse the order and paste into a spreadsheet? With the CLI, it’s easy:

  1. Copy the list into your clipboard. Try it with the example here:

    3
    2
    1
  2. Make sure you have pbcopy and pbpaste

  3. Use tac to invert the clipboard

    pbpaste | tac | pbcopy
  4. Now paste and you should see

1
2
3

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Tyler Adams
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share