Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: chibaru
  • Content: Threads
  • Order by date
  1. chibaru

    Perl sort one-liner in DOS bat

    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 >...
  2. chibaru

    Perl with external subroutines

    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...
  3. chibaru

    DOS batch - File size into variable

    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?
  4. chibaru

    Unix to Perl - system date display

    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...
  5. chibaru

    tar command - include wildcard?

    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...
  6. chibaru

    Replacing string in a specific line

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

Part and Inventory Search

Back
Top