I'm looking for a bash script that will detect when a file enters a specific folder. Basically I want to eventually make a script that will detect when a file enters a certain folder on my desktop (using windows with wsl), add .png to the end of the file name (long story, just need that to happen), and then move to another file on my desktop. I have something to rename the files, as a friend made it and we worked together to troubleshoot it
for i in /[directory here] ; do mv "$i" "$i.png" ; done
Now I just need to automate it. I don't want to bother him more, since he has already done so much, and I am too new to Ubuntu to understand exactly what to do
Is this something to worry about?
– Aidan Quiett Jan 08 '20 at 03:46sudo apt updatefirst then try again. – Raffa Jan 08 '20 at 04:38