Does a trusted blockchain import from BitcoinCore require that chainstate and blocks be from the same source?

Can the chainstate folder from a pruned node be used with the blocks folder from a full node to provide the full blockchain? Assume that both nodes have been running for months. If the blocks folder contains references to filenames in the chainstate folder, then the answer is no. I know this because the filenames…

Details

How do i store output of the function into an array

DATA SET file name “demo.txt” ID|SAL|COL|PER|TAG 1″|”1.11″|”2.22″|”1.1″|”2.2 2″|”1.234″|”3.234″|”2.2222″|”2.34 3″|”1.234″|”35.23″|”3.2″|”2.34 I have created a function which will automatically calculate decimal column sum below is the function I am calling that function in main.sh script demo() { FILE_NAME=”$1″ COLUMN_NAME=”$2″ alpha=( $(awk -F”|” ‘NR==1{for(i=1;i<=NF;i++){if ($i ~ /’$COLUMN_NAME’/){print i;}}}’ $FILE_NAME) ) for each in “${alpha[@]}” do awk -F'”?\\|”?’ ‘{T+=$(‘$each’)}…

Details