Replace Every Occurrence
Easy · Sed & Awk · sed
Problem
Print notes.txt with every occurrence of cat replaced by dog.
Approaches
- sed 's/cat/dog/g'
Related problems
Start free on Cariara · Coding problems · System design studio
Easy · Sed & Awk · sed
Print notes.txt with every occurrence of cat replaced by dog.
Start free on Cariara · Coding problems · System design studio
A problem statement, a real editor, graded tests, and several worked solutions with complexity for every problem. Python runs in your browser — real CPython, no submissions, no waiting on a queue.
CPython via Pyodide in a worker. An infinite loop costs you the worker, not the tab.
Each published solution is executed against every test for its problem. A solution that fails is a build failure.
Solved marks, drafts and notes are saved to your account and sync across the machines you sign in on.
Loading Python…