How within Apache Ant can I filter OUT only lines that don’t begin with INSERT like I believe is possible (see below) with grep.
cat specialtable.inserts.sql | grep INSERT > specialtable.inserts.ONLY.sql
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the linecontains or linecontainsregexp filter readers
If you wanted to filter the file to include all lines that contain INSERT, UPDATE, or DELETE then use
linecontainsregexp:You could also use the
casesensitiveattribute and a more complex REGEX expression to ensure that the lines start with those words.