Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, can any one help me with the hint for : How to replace a line containing some word by only another word... Ex: The sed program is the ...
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    3

    replace a line containing particular string using sed

    Hi all,
    can any one help me with the hint for :


    How to replace a line containing some word by only another word...

    Ex:
    The sed program is the Linux stream editor utility
    The pattern is a regular expression that you wish
    to match and replacement is the new string to ..


    replace the line containing 'program' by only word LINUX

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    its against forum rules to ask homework questions, if you have a particular question about sed feel free to ask

    this is probably the most simple operation for sed that you are detailing, you would be able to solve it by reading the sed tutorial on The Linux Documentation Project or the sed man page

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...