Name: Marian Date: April 22, 2002 at 12:46:37 Pacific Subject: is this simple task ? please help.
Comment:
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 !
I'm sure that it's possible, tho it depends upon your definition of simple. What's the purpose of this program? Sometimes knowing the use of the program helps in understanding the problem.
i need to look for a certain string in file 1 and then search for the string if it exists in file 2. I search for identification number that exists in file 1 and if it exists in file 2 too. And it doesn't matter what the actual position of the id number is. Will you help ?