Skip to main content

I have a script that downloads a folder. 

The folder has a fixed name with an ever changing number as a suffix, e. Egg. fixed_name_450 fixed_name_450. 

Each time I run to script the downloaded folder will have a new suffix (new number).

I need to cpcopy a couple of files into this folder but the destination directory will always be different as it's number will always change.

Is there a work around?

I have a script that downloads a folder. The folder has a fixed name with an ever changing number as a suffix. Eg. fixed_name_450 . Each time I run to script the downloaded folder will have a new suffix (new number).

I need to cp a couple of files into this folder but the destination directory will always be different as it's number will always change.

Is there a work around?

I have a script that downloads a folder. 

The folder has a fixed name with an ever changing number as a suffix, e.g. fixed_name_450. 

Each time I run to script the downloaded folder will have a new suffix (new number).

I need to copy a couple of files into this folder but the destination directory will always be different as it's number will always change.

Is there a work around?

Source Link

Shell script cp command to a folder that will constantly change name

I have a script that downloads a folder. The folder has a fixed name with an ever changing number as a suffix. Eg. fixed_name_450 . Each time I run to script the downloaded folder will have a new suffix (new number).

I need to cp a couple of files into this folder but the destination directory will always be different as it's number will always change.

Is there a work around?