Skip to content

Commit d5f4164

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

json-split1.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66

77
Password vault account query output splitter:
88
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+
cat res*file | sed -e 's/[{}]/''/g' | sed 's/,"Key/|"Key/g' | sed 's/,"accounts"/\|"accounts"/g' | awk '{n=split($0,a,"|"); for (i=1; i<=n; i++) print a[i]}' | sed 's/"//g'| sed 's/\[//g' | sed 's/\]//g'
10+
cat res*file | sed -e 's/[{}]/''/g' | sed 's/,"Key/|"Key/g' | sed 's/"//g' | sed 's/\,accounts/\|/g' | sed 's/:\[AccountID/AccountID/g' | sed 's/\,Internal/\|Internal/g' | sed 's/\,Properties:\[/\|/g' | awk '{n=split($0,a,"|"); for (i=1; i<=n; i++) print a[i]}'
11+
cat res*file | sed -e 's/[{}]/''/g' | sed 's/,"Key/|"Key/g' | sed 's/"//g' | sed 's/\,accounts/\|/g' | sed 's/:\[AccountID/AccountID/g' | sed 's/\,InternalProperties:\[/\|/g' | sed 's/\,Properties:\[/\|/g' | awk '{n=split($0,a,"|"); for (i=1; i<=n; i++) print a[i]}' | sed 's/\]//g'
12+
913

0 commit comments

Comments
 (0)