I want to replace the 5th line of multiple text files (file1.txt,file2.txt,file3.txt,file4.txt) with the string " Good Morning " using a single terminal command.
All the text files are located on my ~/Desktop
.
Note: My desktop consists of 6 .txt files.I want to apply the change to above mentioned 4 text files only.