Q: How to find and replace a string in Nano?
A: The answer is straightforward, while you are in Nano,
Ctrl+ \. Notice that a box appears in the bottom of the window
- Then type the string you are trying to find and press
- Then type the string you want to replace and press
- At this point Nano jumps to the first instance of what you are looking for and shows you a set of shortcuts to go and find one by one, by pressing
yfor accepting and nfor skipping, or replace all by pressing a
For just finding a string, you can use