0
Whatâs the language?
Hello! I just found a code snippet, and it wonât compile. I know that itâs meant to be executed to a program called âNEXTCLOUDâ, try to google it, itâs awesome! Iâll just paste the snippet here: #!/bin/bash sourcedir=â/â destdir=â/â today=`date â+%Y%m%dâ` folder=`date â+%y-%Vâ` touch -t â$todayâ0000.00 /tmp/today.start touch -t â$todayâ2359.59 /tmp/today.end if [ ! -d $destdir/$folder ]; then mkdir -p $destdir/$folder echo âCreating $destdir/$folderâ fi find $sourcedir -maxdepth 1 -name â*.jpgâ -type f -cnewer /tmp/today.start -and -not -cnewer /tmp/today.end -exec mv -v {} $destdir/$folder/ \; rm /tmp/today.start /tmp/today.end #
4 Antworten
+ 2
Meol03 I think this is Bash Script
+ 1
script move the folder based on its creation date
+ 1
That's Bash
+ 1
thanks everyone!