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 IamaSherpa 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: *

  1. chibaru

    Perl sort one-liner in DOS bat

    Thank you Annihilannic!! I am not so good with hashes. You really saved me a lot of time!
  2. 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 >...
  3. chibaru

    Perl with external subroutines

    Shucks...I was hoping there's a way to have it compiled into the main script like an include. Thank you anyway.
  4. 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...
  5. chibaru

    DOS batch - File size into variable

    Thank you again! It worked after a minor change (filename was mistyped) but that's okay...it was easy!.
  6. chibaru

    DOS batch - File size into variable

    Thank you smah! I appreciate your quick response!
  7. 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?
  8. chibaru

    Unix to Perl - system date display

    Thank you so much!! It works great, even after a 10 second pause!!!
  9. 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...
  10. chibaru

    tar command - include wildcard?

    Thank you, I will try that!
  11. 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...
  12. chibaru

    Replacing string in a specific line

    Thank you both for such quick response!! They both worked great!!
  13. 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