Reading a directory and Renaming the file

2003-10-30 Thread James Parsons
ile2 Usage: mv [-i | -f] [--] src target or: mv [-i | -f] [--] src1 ... srcN directory etrprodftp /usr/local/sbin Any help would be great.. James Parsons. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reading files in a directory

2003-10-30 Thread James Parsons
Hi all I've this Perl script to read all files in a directory and if it finds a file with a certain then rename the file to header -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Padding a record with zero's in a file

2003-07-17 Thread James Parsons
; Any help would be great. Thanks James Parsons -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to check if a set of numbers are in the correct Sequence.

2003-06-13 Thread James Parsons
Hi all Since I'm new to perl, I'm not sure how to tackle this type of problem a. I have file with the following in it 100 101 102 103 b. How would check if these numbers are in correct sequence c And they are not sequence kick out an error message. Any help would be gre

Perl Script

2003-02-19 Thread James Parsons
Ok here go's again. I have anywhere from 1 - 15 files in a directory, and I could have up to 5 files with the same header record. and the rest have different header records. So what I would like to is read each file and when there's a match rename that file to something else example

Simple Perl Script

2003-02-18 Thread James Parsons
Any help would be great Script: #!/usr/bin/perl -w use strict; my $total = 0; open(FILE,"/usr/local/logs/pos/dollar_me") || die $!; $total += $_ while(); close(FILE); printf ("%7.2f\n",$total); The number comes out as 120.23 inst

Perl question

2002-11-12 Thread James Parsons
Good Morning all Since I'm still a Newbie when it comes to Perl , so my question may sound fairly simple to the group but here goes.. I need to create a file that has the localtime - 1 day and -2 days. and then redirect this to 2 separate files. thanks in advance. James Parsons. -

Newbie Question

2002-10-10 Thread James Parsons
Hi all Perl Is extremely new to me and I'm having a problem were to start.. I would like to create a script that reads the header in each file in a directory and when it finds a match then redirects all of the data in the file to another file. Any help would be great.. thanks

Newbie Question

2002-09-18 Thread James Parsons
e = 100; $total = $total/$value; printf "\$$total\n",; etrprodcrm1pri /usr/local/sbin # Thanks James Parsons -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Newbie

2002-09-04 Thread James Parsons
4 0042 0039 3103 00230004 0014595h Thanks James Parsons -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]