function cid(){ dd=${d:h} ai=$dd/target/debug/ai f=$dd/.config/ai/txt/notify_cid if [ ! -f $ai ];then cd $dd cargo build fi $ai n|jq -r ".[]|.[]?.cid" >> $f.txt cp -rf $f.txt ${f}_run.txt }