I would like to make a simple bash script where the goal is to make it run another script and move the output files from that script to a different folder.
The problem is , that this somescript.pl
creates a file like this:
customfile-Withcontent-202305231159.tar.gz
As you can see there is a fixated prefix customfile-Withcontent-
but there is a suffix for the name with the actual date.
What I would like to achieve is to make a bash script, which some kind of autocompletes the actually created file, and moves it to the desired folder, somehow like this:
For example:
./somescript.py #this script creates a file #first I create the file
mv customfile-Withcontent *pressing TAB or smth* so it completes the filename /Desiredfolder/Desiredfilename.tar.gz #moves the file with renaming.
The somescript.py
is not editable, anyone has any suggestions?
I tried to edit the somescript.py
but it made wrong everything, and it doesnt run so I think that wouldnt work. I would like to automate a work, there are 200 files to move.