Closed DininduSenanayake closed 1 month ago
Following will do the trick
# Copy .met and .apsimx files to each set directory
echo "Copying .met and .apsimx files to each set directory..."
for set in {1..4}; do
cp *.met "set-$set/"
cp *.apsimx "set-$set/"
done
echo "Copying complete."
echo ".met files copied to each set: $(ls *.met | wc -l)"
echo ".apsimx files copied to each set: $(ls *.apsimx | wc -l)"
split_configfiles_to_sets.sh is working well with respect to splitting the .txt files into multiple directories. However, current iteration requires the user to manually copy the .met and .apsimx master files to each
set-
directory. Since this is a redundancy as that step can be easily forgotten, it will be ideal to add that instruction to the same script