how to find and replace in nano editor
To find text in the current file, press CTRL+W, enter the wanted text and press ENTER. To see the next occurrence of that text, press ALT+W. If you want to perform a find and replace, press ALT+R, enter the text to find and press ENTER. Now enter the replacement text and Press ENTER again