I am trying to copy many files using a command similar to this
exec cp $FILE_DIR/file* $File_DIR2
but the * is not evaluated as meaning all files beginning with
file. What do I need to do to get it to evaluate correctly?
I have tried using eval on it before using exec and haven't had luck with that either. I'm sure it can be done, I just haven't been able to get the syntax right.
Thanks in advance...
Bob
exec cp $FILE_DIR/file* $File_DIR2
but the * is not evaluated as meaning all files beginning with
file. What do I need to do to get it to evaluate correctly?
I have tried using eval on it before using exec and haven't had luck with that either. I'm sure it can be done, I just haven't been able to get the syntax right.
Thanks in advance...
Bob