![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| insert new line at found chars | crowman | Shell Programming and Scripting | 6 | 09-25-2008 04:03 PM |
| how can i compare te length of the string | mail2sant | Shell Programming and Scripting | 6 | 09-16-2008 04:00 AM |
| compare the column from 3 files and merge that line | ganesh_mak | Shell Programming and Scripting | 8 | 04-14-2008 07:56 AM |
| Get multiple line content between two chars | Feliz | Shell Programming and Scripting | 2 | 04-11-2008 12:29 PM |
| Using PERL to append chars to each line | c0nn0r | Shell Programming and Scripting | 5 | 07-11-2006 07:55 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to Compare two files depend on line length Chars
I need to compare two files with exactly same length as example: -
File1 contain 500 records with length of 640 chars of each line. File2 contain 1500 records with length of 640 chars of each line. I need get an output to be written in File3 which will contain 1000 records difference. but my diff will be based on line length which is 630 chars and ignore the remaining 10 chars in comparing. However, file3 I wanted to include all 1000 records with 640 chars lenght for each line. Thanks in advance |
|
||||
|
Many Thanks for your swift reply,
However, this is not what I am looking for, let me example it to be easier for understanding in order to help me. File1 contain 500 records and each line lenght has 640 chars File2 contain 1500 records and each line length has 640 chars. Now; My File2 will be my source, I need one line length of 630 chars from File2 to check if it's exist in File1, If yes, then go to second line search. Else, copy this line into new file (File3) but this time with exact line length of 640 from the orginal instead of 630 chars. I hope this make it clear. Thanks. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|