I need a shell script to find and replace text that would go like:
For each line in a file
find equation mark "="
remove everything up to the equation mark on that line and replace it with the string cuts[Counter] where Counter counts how many times such substitutions have been made.
Could anybody help me out with getting started with a script like that?
Assuming you mean “up to the first equation mark…” and you want to keep the =, this should do it: