Q: How to find and replace a string in Nano?
A: The answer is straightforward, while you are in Nano,
- Press
Ctrl +\ . Notice that a box appears in the bottom of the window - Then type the string you are trying to find and press
Enter - Then type the string you want to replace and press
Enter - 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
y for accepting andn for skipping, or replace all by pressinga
For just finding a string, you can use
Thamks that halps me alot