I have a file which has been running for 14 months or so which sorts the files weekly and then moves them from that folder into a new one created for the dates they are made for.
I have not bothered with it for about 6 months knowing that it had been running smoothly, but I checked today and found that the files have not been moved to the other folders since June, now there are over 320,000 files in this directory (on a hard disk where they had been moved to by the initial script as should be).
I cannot get the move script to run as it keeps giving the error './CreatejpgDirsF_WithDays.sh: line 6: /bin/mv: Argument list too long' ?
Can anyone help please
If its any help here's the troublesome line in the script (I think)
Code: Select all
mv /home/pi/mnt/CamFiles/FrontOfHouse/*.jpg to /home/pi/mnt/CamFiles/FrontOfHouse/jpgFiles/