Skip to main content
8 events
when toggle format what by license comment
Apr 21, 2021 at 12:18 comment added Toby Speight It's (very) slightly more efficient to head or dd first in the pipe, then tr after.
Apr 20, 2021 at 12:24 comment added Olivier Dulac I'd certainly not qualify you as slow ^^. And having different options (suxh as perl) is always welcomed. Feel free to add the yes variant as well if you want.
Apr 20, 2021 at 12:18 comment added ilkkachu @OlivierDulac, d'oh, I've really been slow here. Using yes actually crossed my mind before, but I got stuck at the mandatory newline... yes $'\xff' | tr -d '\n' | ... would also work for the all-ones in shells that support $''.
Apr 20, 2021 at 12:08 comment added Olivier Dulac @DisplayName: for string abcde without using perl, use yes: yes "abcde" | tr -d '\n' ...
Apr 19, 2021 at 21:05 history edited ilkkachu CC BY-SA 4.0
added 14 characters in body
Apr 19, 2021 at 21:03 vote accept DisplayName
Apr 19, 2021 at 21:02 history edited ilkkachu CC BY-SA 4.0
added 14 characters in body
Apr 19, 2021 at 20:55 history answered ilkkachu CC BY-SA 4.0