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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by darkknight18

  1. darkknight18

    read and paste two files

    Thanks prex1, That works but I get a few errors such as Use of uninitialized value $_ in scalar chomp at ./trial line 11, <DATA> line 5. readline() on closed filehandle FILE at ./trial line 14 Use of uninitialized value $ID1 in string eq at ./trial line 64, <DAT> line 1 The files I'm...
  2. darkknight18

    read and paste two files

    I've written the following, it is very crude but works till the last step, where it has to paste two lines only if their ID's are the same. #!/usr/bin/perl -w use warnings; ######## READING FILE ONE ########## $[ = 1; open(DATA, "< list1") or die "Failed to open list1"; open(MYOUT1, ">...
  3. darkknight18

    read and paste two files

    I need help in reading and pasting two files. File list 1 - list of files ex: d3jf_fh_xyz and so on File list 2 - list of files ex: d3jf_fh_abc each file has one line of numbers separated by spaces. If the beginning part of the file name in list 1 matches file name in list 2 (i.e d3jf_fh), I...

Part and Inventory Search

Back
Top