Message7824

Author amak
Recipients amak, fwierzbicki, houtm035
Date 2013-02-26.23:39:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361921998.28.0.635365546314.issue1690@psf.upfronthosting.co.za>
In-reply-to
Content
Your example code is

os.system(  'qgrep "<xyz" D:\*.xml > D:\result.txt'  )

You are aware that the \ characters are not being interpreted as directory slashes in this string: they are python escape characters. Furthermore, the "\r" will be interpreted as a carriage return.

Why such a convoluted mechanism? Why not just do this?

os.system('qgrep xyz D:/*.xml > D:/result.txt')
History
Date User Action Args
2013-02-26 23:39:58amaksetmessageid: <1361921998.28.0.635365546314.issue1690@psf.upfronthosting.co.za>
2013-02-26 23:39:58amaksetrecipients: + amak, fwierzbicki, houtm035
2013-02-26 23:39:58amaklinkissue1690 messages
2013-02-26 23:39:58amakcreate