- Thanks received
- 1,850
If this was windows I could knock this out in seconds, but it's linux and I haven't much experience, or more to the point examples that I reverse engineer and rip off
I have two variables say "name" and "location"
What I want to be able to to is create a script that will allow me to pick one from each pre-determined list and then use them in a series of file paths to then move them to a single place
Firstly does the ask make sense?
I have two variables say "name" and "location"
What I want to be able to to is create a script that will allow me to pick one from each pre-determined list and then use them in a series of file paths to then move them to a single place
Code:
Source\%name%\%1%\filename1
Source\%name%\%2%\filename2
Source\%name%\%3%\filename3
Source\%location%\%a%\filename2
Source\%location%\%b%\filename2
Source\%location%\%c%\filename2
cp source\%var1%\filename1 destination\filename1
cp source\%var2%\filename2 destination\filename2
./destination/run.sh
Firstly does the ask make sense?