Carica file su 'STATS-PROC'

Versione finale script con gestione file .req e relative cartelle
This commit is contained in:
marco
2019-10-17 14:27:32 +02:00
parent a9905d907b
commit 0ea6bd8663
+17
View File
@@ -0,0 +1,17 @@
#!/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