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

    Compare 2 text files

    An example is best I think: File1 File2 12345678901234567890123 123456789012345678901234567890123 01234567890123456789012 212345678901234567890123456789012 23456789012345678901234 234567890123456789012345678901234 For the above, I want to create a file with only record1...
  2. turnersn

    Compare 2 text files

    I do not think I explained this well enough. I am trying to take the 10 bytes from file2 and put it on the tail of file1 records where the first 23 bytes of file1 = first 23 bytes of file2. What I somewhat envisioned doing was a file compare between file1 and file2, but only do the compare on...
  3. turnersn

    Compare 2 text files

    2 text files where: file1 has a record length of 23 file2 has a record length of 33 I want to compare the 2 files so that records in file1 exist in file2. Essentially I want to compare the files utilizing only the first 23 bytes of the records in each file. Is this possible via a UNIX script?
  4. turnersn

    How do I replace spaces in specific position in record with zeros?

    I have a file that I need to look at positions 335 -> 344 and if any of these positions are a space, make them a zero.
  5. turnersn

    passing command line arguments into awk script using substr

    worked out the answer myself:<br><br>awk '{if(substr($0,var1,var2)==var3) {print $0}}' var1=$1 var2=$2 var3=$3 input file &gt; output file
  6. turnersn

    passing command line arguments into awk script using substr

    Here is the basic script I want to pass 3 arguments into:<br><br>awk '{if(substr($0,position,length)==&quot;variable&quot;) {print $0}}' input file &gt; output file<br><br>I want to pass in the position, length, and variable at the command line when running this script?&nbsp;&nbsp;Any...

Part and Inventory Search

Back
Top