News for hackers. Stuff that matters.
Re:File Transfer with SSH, Tee, and Base64 by jwilk on Thursday September 17, 2020 @01:18PM (#24507293)
> sed '1,/$ base64/d;/$ exit/,$d' ssh.txt

Huh. I'm surpised this works, because $ is not escaped.

Re:File Transfer with SSH, Tee, and Base64 by formerly_proven on Thursday September 17, 2020 @01:24PM (#24507364)
Single quotes.
Re:File Transfer with SSH, Tee, and Base64 by jwilk on Thursday September 17, 2020 @01:29PM (#24507421)
No, I mean $ usually means end-of-string (or end-of-line) in regexps. But TIL in BREs, $ means literal character in the middle of an expression:

https://pubs.opengroup.org/onlinepubs/007904975/basedefs/xbd...

Re:File Transfer with SSH, Tee, and Base64 by formerly_proven on Friday September 18, 2020 @07:21PM (#24522829)
Oh I see now, I never thought about $ being usable anywhere except at the end as an anchor!