-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,2 @@ | ||
Added commands: to-clines quote-c unquote-c | ||
|
||
Use to-clines for printing greppable lines: xmq test.xmq to-clines | ||
|
||
alfa(A) { | ||
empty | ||
'Hejsan' | ||
beta = hoppsan | ||
'Svejsan' | ||
} | ||
|
||
outputs: | ||
|
||
/alfa/@A="" | ||
/alfa/empty="" | ||
/alfa="Hejsan" | ||
/alfa/beta="hoppsan" | ||
/alfa="Svejsan" | ||
|
||
The right hand side is an ansi-c quoted string probably compatible with json. | ||
|
||
You can quote/unquote ansi-c strings like this: | ||
echo -ne "hello\nworld!" | xmq --text quote-c to-text | ||
outputs: | ||
"hello\nworld!" | ||
|
||
echo '"hello\nworld!"' | ./xmq --text unquote-c to-text | ||
outputs: | ||
hello | ||
world! | ||
Release artifacts for Posix platformas are now tar.gz archives with a single executable binary. | ||
|