Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-22-2012, 12:13 PM   #16
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled

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

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.

Last edited by Nylex; 01-22-2012 at 12:21 PM.
1 members found this post helpful.
Old 01-22-2012, 02:55 PM   #17
LQ Newbie
Registered: Jan 2012
Location: Croatia
Distribution: Windows XP
Posts: 7

Original Poster
Rep: Reputation: Disabled
That did the trick. With this line, less also works like it should. Thanks, Nylex.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
difference in size of the tarred files after archiving using tar command emagnun Linux - Newbie 4 05-17-2011 07:48 AM
[SOLVED] Command line: chown command recursively on invisible directories? JZL240I-U Linux - Software 9 10-29-2010 05:34 AM
Manipulating fonts from the command line selie Linux - General 1 07-31-2010 09:50 AM
Archiving old files from /home/* directories to less expensive disk storage. Cerephim Linux - Server 6 11-06-2009 12:25 PM
Need to delete directories with files using command line FTP Zombie13 Linux - Software 2 03-10-2006 11:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration