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

    Chop one record into many records

    finally after much error this worked - crude tho it may be $ more george.pl #!/usr/bin/perl open(DOG,"/dw01/app/pwmart47/BkupFiles/custacct.sptd.200106130424") || die "Coul dn't open DOG\n$!\n"; open(CAT,">/dw01/app/pwmart47/BkupFiles/george.sptd.out") || die...
  2. georgesmith

    Chop one record into many records

    Mike Lacey provided me with the following PERL script it is currently executing /usr/bin/perl -w use strict; # just to keep me honest my $line_length = 1360; my $whole_file, $a_line; $whole_file = <>; # slurp the file into a variable. while($whole_file){ $a_line =...
  3. georgesmith

    Chop one record into many records

    We have PERL - leastways PERL -h gives me a response
  4. georgesmith

    Chop one record into many records

    OK so what I really wanted to do was split one record into many records each seperataed by a LF and not a carriage return - is PERL my best option how do I tell if we have it installed ? Thanks George
  5. georgesmith

    Chop one record into many records

    Actually success was premature I am not on solaris I and AIX I can split -bnn and get many files all of the required length each with one record in I then cat these all back together again hoping to end up with a file of just 1360 bytes CR 1360 bytes CR 1360 bytes CR etc but alas I just get back...
  6. georgesmith

    Chop one record into many records

    That worked Thanks
  7. georgesmith

    Chop one record into many records

    How do I take a file of nnnn bytes with no carriage returns and chop it into lines of nn bytes followed by a CR Thanks for yer help George

Part and Inventory Search

Back
Top