CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Need help adding stuff to a parsing script

 



sg3
New User

Oct 8, 2012, 7:11 AM

Post #1 of 1 (1086 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:


Code
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.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives