gpt-4-0314· openai
Suzhen/CodeChat
I need a cmd line code that would delete the strings "Q Sub-total:" and "Grand Total:"…
- User
I need a cmd line code that would delete the strings "Q Sub-total:" and "Grand Total:" from a textfile on widnows
- Assistant
You can use the
findstrcommand with the/Voption to delete specific strings from a text file. Here's the command you need:findstr /V /C:"Q Sub-total:" /C:"Grand Total:" input.txt > output.txtThis command will search for lines that do not contain the specified strings in
input.txt, and write the result tooutput.txt. Replaceinput.txtandoutput.txtwith your actual file names.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.