Help with cp using absolute paths and globbing.
Here's a new questions I am stuck on... I think I have the right idea just something needs a little tweaking.
You should currently be inside your lab09 directory. Create a subdirectory called ones and copy (from inside your lab 09 directory) all the files in the /labs/data/filenames/ that end with a 1,2,3-9 into this new ones directory. I.e. copy the files file.1 - file.9 etc. but not the files file.11, file.21 etc. Write the full command to cope these files into this new ones directory using only relative paths.
Both directories are created and there /lab09/ones
I am starting in lab09 Then I move to /labs/data/filenames/ and ls -l to see what I am looking for after I see my files there I am moving back into lab09.
This is what I am trying to use cp ../../../../../labs/data/filenames file.[1-9]
Any suggestions? It is homework and I know the rules I am not expecting full answers but I do need some insight.