Hi,
Is it possible to have a Perl one-liner sort that will produce no duplicate records in a DOS bat file? The files are defined in the job environment (local) variables. I tried different variations of the following with no success:
perl -pe "sort $ENV{qq(INSORT)} | uniq -u >...
Hi,
I hope someone can help me as I am completely lost. The platform is Windows.
I have a main.pl that will read in records from a file and print the customer numbers. I created a separate .pl that has common subroutines that will be used other Perl scripts. One subroutine defines the record...
I'm writing a DOS batch file for Windows XP Pro that will get the file size of a file every 5 seconds and compare it to the last fetched size. This check is testing for job completion. How do I get the file size into a variable for a specific file?
Hi !!
I'm converting a Unix script to Perl on Sun Solaris. The script does message logging with date and time as each step is completed. The time is displayed and the seconds change.
The Unix print looks like this:
print "$(date +'%D %T') Step $STEP completed."
The log looks like this...
Hi,
I have a tar file with a directory that has subdirectories with reports in them. I would like to to extract only one report from all subdirectories. Is it possible to have a wildcard using an include file?
For example, in this tar file, I only want rpt1 from subdirA and subdirB...
I'm trying to replace text in a specific line and can't get it to work. I'm fairly new with Unix scripting. I tried searching the forum but didn't find one that fit my needs.
I have a file of transactions and the first record of the file contains a header with a date. I would like to replace...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.