3 ms·
I paste the code into an invocation of sed s/^/ /
by School-Cotton 2y ago
I paste the code into an invocation of
sed s/^/ /
- jasomill 2y agoSpecifically: 1. Copy code to clipboard. 2. From a shell prompt on macOS, pbpaste | sed 's/^/ /' | pbcopy Linux (Wayland), wl-paste | sed 's/^/ /' | wl-copy Linux (X11), xclip -o -se c | sed 's/^/ /' | xclip -se c Windows (PowerShell), Get-Clipboard | % { $_ -replace '^',' ' } | Set-Clipboard 3. Paste into HN.
- School-Cotton 2y agoThanks, I didn't know about xclip -se c I've been typing out "-selection clipboard" this whole time!