
sg3
New User
Oct 8, 2012, 7:11 AM
Post #1 of 1
(2234 views)
|
Need help adding stuff to a parsing script
|
Can't Post
|
|
Hey I need help with the following if possible, basically I'm working over few files and saving the output in a certain directory using:
gzcat File1.gz | nohup ./parse.pl -> /dir/tmp_File1.txt & So i need to figure how to add to the perl script the following - at the end when it's done parsing and saving the output to tmp_File1.txt to rename it to File1.txt and then perform line count and save the output for example in logfile.txt. How can I make sure that the script does that only to the filename used above in the unix command (Sometimes the same parser is runing on several files, and I want to make sure that the script doesn't rename a different file)? Thanks in advance.
|