date rollover/rollback script

2005-12-09 Thread Danny Fang
HI, I have a script which simulates the rollover/rollback of timestamps for a file. In the attached script, the dates refer to the timestamp of the data being written to a file to be processed at a later time. Therefore, there is a timestamp to denote the time for processing the file.

Modifying column values of file records and appending to end of file.

2005-11-21 Thread Danny Fang
Hi, I'm new to PERL and would like to seek help for the task mentioned below: I'm attempting to read the contents of a file containing rows with the format shown below:

PERL error message - Useless use of a variable in void context

2005-03-03 Thread Danny Fang
Hi, I've a script below which reads the contents of a text file which contains the output of the `ls -lR` in UNIX. This script reads the list of html files contained in the text file, and for every file it checks to see it contains some specified HTML tags or not. If it does not, this script

Inserting HTML tags

2005-03-02 Thread Danny Fang
Hi, I'm a newbie with Perl and I wrote a perl script (see below) whose function is to read a *.html file and checks to insert the following HTML tags i.e head, /head, /body, body, /scripthistory.forward( ) if these tags are not present. Content of the html test file are as follows: html

PERL with grep

2005-01-19 Thread Danny Fang
Hi I'm a newbie in PERL and wish to seek some help with regards to pattern matching PERL and grep. I would like the script to do the following: 1) List all *.java files containing following patterns: double, parseDouble 2) Within such files, list all variables and declared as type double