Feature request for s2d: add option to ignore invalid input and print it as is #1127
alexbozhenko
started this conversation in
Ideas/Features
Replies: 1 comment 1 reply
-
|
Not sure it is worth it for something that can be done pretty simple with a bash script... #!/bin/bash
set -e
file="$1"
if head -c 10 "$file" | grep -q $'\xff\x06\x00\x00S2sTwO'; then
./s2d -c "$file"
else
cat "$file"
fiOr if you don't want a script, then this oneliner... head -c 10 "$file" | grep -q $'^\xff\x06\x00\x00S2sTwO' \
&& ./s2d -c< "$file" \
|| cat < "$file" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I was wondering if you would be open to adding a flag that would allow
s2dto print invalid input as is.For example, if I have a stream of messages, some of them are encoded, and some of them are not.
What I currently see:
What I would expect to see:
Beta Was this translation helpful? Give feedback.
All reactions