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 ответов
+ 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!