From 8eedc9d5766df8d57815bdd38e5fa5e3757e7555 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 20 Feb 2015 13:18:44 -0800 Subject: updated install doc --- util/shredder/readme | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 util/shredder/readme (limited to 'util/shredder') diff --git a/util/shredder/readme b/util/shredder/readme new file mode 100644 index 000000000..44ed6f45c --- /dev/null +++ b/util/shredder/readme @@ -0,0 +1,11 @@ +http://kmkeen.com/jshon/ + + + +Jshon was made to be part of the usual text processing pipeline. However, every single -u is printed out to its own line. Most shell tools expect fields to be tab separated, and newlines between sets of fields. The paste tool does this. However, paste breaks down on blank lines so use sed to pad out the empty lines. + +jshon ... | sed 's/^$/-/' | paste -s -d "\t\t\n" | .... + +The arguments need a little explaining. +-s is mysteriously needed for paste to correctly handle input. +-d is less obvious from the manpage, because it can take multiple characters which are looped through. The above example concatenates every three lines together. -- cgit v1.2.3