Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d843f8e

Browse files
authored
Update json-split1.sh
1 parent f49c07b commit d843f8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

json-split1.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
Same code with a filter k="text" to show only fields with name "text" (but this filter is not working)
55
cat filename.txt | sed -e 's/[{}]/''/g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}'
66

7+
Password vault account query output splitter:
8+
cat res*file | sed -e 's/[{}]/''/g' | sed 's/,"Key/|"Key/g' | awk '{n=split($0,a,"|"); for (i=1; i<=n; i++) print a[i]}'
9+

0 commit comments

Comments
 (0)