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 #

27th Jun 2018, 3:00 AM
Meol03
Meol03 - avatar
4 Antworten
+ 2
Meol03 I think this is Bash Script
27th Jun 2018, 3:12 AM
Agent
Agent - avatar
+ 1
script move the folder based on its creation date
27th Jun 2018, 4:11 AM
‎ ‏‏‎Anonymous Guy
+ 1
That's Bash
27th Jun 2018, 7:53 AM
StefanGliga
StefanGliga - avatar
+ 1
thanks everyone!
27th Jun 2018, 8:45 AM
Meol03
Meol03 - avatar