471,330 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

hidden characters in a string

60
Hi Guys,

I am reading a file (say file1) to extract strings and use them to search the lines in file2 that contain them. I get an error that the strings are not there in file2 but I know that they are there. When I just use grep on the command line and type the string of an interest and file2 as an input file I get the corresponding line.

I HAVE A FEELING THAT PYTHON IS INSERTING EXTRACT HIDDEN CHARACTERS WHILE READING FILE1. WHO CAN I AVOID THIS
Oct 1 '07 #1
1 3070
Motoma
3,237 Expert 2GB
Hi Guys,

I am reading a file (say file1) to extract strings and use them to search the lines in file2 that contain them. I get an error that the strings are not there in file2 but I know that they are there. When I just use grep on the command line and type the string of an interest and file2 as an input file I get the corresponding line.

I HAVE A FEELING THAT PYTHON IS INSERTING EXTRACT HIDDEN CHARACTERS WHILE READING FILE1. WHO CAN I AVOID THIS
I think this is unlikely. Perhaps you could produce some code for us to examine?
Oct 2 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by karteikarte | last post: by
3 posts views Thread by Roy Adams | last post: by
3 posts views Thread by Michael Singer | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.