I wonder if anybody can help with this simple task. I need to make it work in AIX version of Unix.
I'd like to read from file 1, from let's say position 20-36 and search for the string in file 2. If the string doesn't exist, write the output to a file.
So the script would work something like this. I enter the names of the file 1 and file 2.The script will take the string from position e.g.20 to 36 line by line and then looks for the string in the file 2. If it finds the match it will write output let's say in file 3, if it doesn't - it'll write the unmatched strings in file 4.
Is it possible to write a simple command script that will work like that ?
Thanks in advance for you soon reply.
p.s. any other solutions, recommendations and ideas are welcome !
Mark
I'd like to read from file 1, from let's say position 20-36 and search for the string in file 2. If the string doesn't exist, write the output to a file.
So the script would work something like this. I enter the names of the file 1 and file 2.The script will take the string from position e.g.20 to 36 line by line and then looks for the string in the file 2. If it finds the match it will write output let's say in file 3, if it doesn't - it'll write the unmatched strings in file 4.
Is it possible to write a simple command script that will work like that ?
Thanks in advance for you soon reply.
p.s. any other solutions, recommendations and ideas are welcome !
Mark