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...
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...
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?
Here is the basic script I want to pass 3 arguments into:<br><br>awk '{if(substr($0,position,length)=="variable") {print $0}}' input file > output file<br><br>I want to pass in the position, length, and variable at the command line when running this script? Any...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.