我需要一个 shell 脚本来查找和替换如下文本:
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.
任何人都可以帮助我开始使用这样的脚本吗?