diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-20 17:30:27 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-20 17:30:27 +0300 |
commit | 1568fa2be103bd26b643133b1f68ae0dd7974134 (patch) | |
tree | d2b53f450b2b74d44f7e3ecfc605df94f55e13f8 | |
parent | ce046ca6bb56e2980f9212412066ef8e7dbb8916 (diff) | |
download | arching-kaos-tools-1568fa2be103bd26b643133b1f68ae0dd7974134.tar.gz arching-kaos-tools-1568fa2be103bd26b643133b1f68ae0dd7974134.tar.bz2 arching-kaos-tools-1568fa2be103bd26b643133b1f68ae0dd7974134.zip |
new function _ak_zchain_extract_cids_limit() for future usage
-rwxr-xr-x | lib/_ak_zchain | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/_ak_zchain b/lib/_ak_zchain index dd9400c..a5203a7 100755 --- a/lib/_ak_zchain +++ b/lib/_ak_zchain @@ -87,6 +87,16 @@ _ak_zchain_extract_cids(){ fi } +_ak_zchain_extract_cids_limit(){ + if [ ! -z $1 ] && [ -n "$1" ] && [ ! -z $2 ] && [ -n "$2" ] + + then + _ak_zchain_crawl -l $2 $1 | jq -M | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq + else + _ak_zchain_crawl | jq -M | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq + fi +} + _ak_zchain_extract_data_cids(){ if [ ! -z $1 ] then |