LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-22-2012, 11:13 AM   #16
Nylex
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

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.

Last edited by Nylex; 01-22-2012 at 11:21 AM.
 
1 members found this post helpful.
Old 01-22-2012, 01:55 PM   #17
GR14
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.
 
  


Reply


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 06:48 AM
[SOLVED] Command line: chown command recursively on invisible directories? JZL240I-U Linux - Software 9 10-29-2010 04:34 AM
Manipulating fonts from the command line selie Linux - General 1 07-31-2010 08:50 AM
Archiving old files from /home/* directories to less expensive disk storage. Cerephim Linux - Server 6 11-06-2009 11:25 AM
Need to delete directories with files using command line FTP Zombie13 Linux - Software 2 03-10-2006 10:23 PM


All times are GMT -5. The time now is 07:02 AM.

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