Noise Posted July 29, 2005 Posted July 29, 2005 Maybe someone around here can help me, this is driving me crazy.I have a text file as followstest.txtblahblahblah >< ewrfewtr (minutes "0")blahblahblah >< ewrfewtr (minutes "5")blahblahblah >< ewrfewtr (minutes "00")I need to find all lines with (minutes "0") or (minutes "00"). So, I need to use the find command to search for the string minutes "0 and the double-quote is driving me crazy.The following doesnt work in a cmd file:find "minutes "0" "test.txt"find "minutes /"0" "test.txt"find "minutes ^"0" "test.txt"find "minutes %"0" "test.txt"find "minutes %%"0" "test.txt"Notice how I try to "escape" the quote in the string. Nothing I've tried seems to work. Anyone have any ideas?
egrath Posted July 29, 2005 Posted July 29, 2005 Hi,use a "" to esape a double-quote:echo minutes "0" | find /n "minutes ""0"matches.Bye, Egon
Noise Posted July 29, 2005 Author Posted July 29, 2005 Thanks egrath...I could have sworn I tried that! /No more late-night script writing for me!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now