Return to Completed

Sometimes after a long break all the jobs in completed will be removed, but here's an example of how to bring them ALL back....
It could be modified to bring back only certain users or Job Actions if needs be....

dir_Scorch=~/scorch
cd ${dir_Scorch}/jobs/completed
lst_Group=$(scorchdb -f ${dir_Scorch}/var/log/jobs.csv -job -failure | grep -v "\-1$" | cut -d" " -f1)
for each_Job in ${lst_Group} ; do
  ln -s ../active/${each_Job} ${each_Job}
  sleep .5
​done