Copy file across variable folder name
I had to make sure 20 original eeePC 701s to allow access to an intranet page on local server and so I had to go into Firefox settings and set it to bypass using the RBC proxy server for local addresses and set a consistant default homepage.
After doing a few, I worked out it was easier to copy prefs.js from one machine to a network folder and then copy it onto each of the other machines using the File Manager.
I wanted to knock up a script nut the problem I have is that the folder name keeps changing from machine to machine.
the prefs.js file is held in something like (not got a machine handy now) ...
Is there a way of writing a script that can handle the variable foldername and just copy the prefs.js file from
/home/classwork/technical/prefs.js which is an SMB mounted share on the server.