
sg3
New User
Jan 28, 2013, 5:17 AM
Post #1 of 2
(185 views)
|
|
rename file after script finishes
|
Can't Post
|
|
Hey guys, I'm a little stuck here. I have a perl script that is working on couple of files and saving them to a directory and right now it's something like this:
gzcat my_file1.gz | my_perl.pl > tmp_output_file1.txt So the question is quite simple but I can't figure out how to do it in the perl file. I need to, when the script has finished working one 1 file, to rename just that 1 files. Please note that the same script is working on couple of files at a time, so in same directory there might be a file with name tmp_output_file2.txt for example that is not finished and it shouldn't be renamed. Thanks
|