Files
marco 0ea6bd8663 Carica file su 'STATS-PROC'
Versione finale script con gestione file .req e relative cartelle
2019-10-17 14:27:32 +02:00

18 lines
488 B
Bash

#!/bin/bash
cd /home/FBF/IN/
files=(`find ./ -maxdepth 1 -name "*.req"`)
if [ ${#files[@]} -gt 0 ]; then
find . -name '*.req' | sed -r 's/^.{2}//' | sed -r 's/.{4}$//' | while read line; do
mv $line /home/FBF/WIP/
mv $line.req /home/FBF/WIP/$line
cp /root/Script_plot_density_mixture.R /home/FBF/WIP/$line
cd /home/FBF/WIP/$line
Rscript Script_plot_density_mixture.R
rm Script_plot_density_mixture.R
mv /home/FBF/WIP/$line /home/FBF/OUT/
cd /home/FBF/IN/
done
else
exit
fi