Carica file su 'STATS-PROC'
Versione finale script con gestione file .req e relative cartelle
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user