LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Manipulating with files, directories / archiving via the Command Line (https://www.linuxquestions.org/questions/linux-newbie-8/manipulating-with-files-directories-archiving-via-the-command-line-924629/)

Nylex 01-22-2012 11:13 AM

Edit: The only thing that's incorrect about what you've done is that you've got an extra slash. The correct syntax is

Code:

sed 's/that/THAT/2gw file4.txt' file3.txt
It's written as "/w" in your notes just to show that "w" can follow the last delimiter in the substitute command.

GR14 01-22-2012 01:55 PM

That did the trick. With this line, less also works like it should. Thanks, Nylex.


All times are GMT -5. The time now is 11:01 PM.