Results 1 to 3 of 3

Thread: Replace Command.

  1. #1
    Join Date
    Aug 2006
    Posts
    5

    Default Replace Command.

    Below is solution to replace Specific word.

    Suppose we have to replace word "four " by "three".

    root@root [~]# cat file
    one two four
    one two four
    one two four
    one two four
    one two four
    root@root [~]# replace four three -- file
    file converted
    root@root [~]# cat file
    one two three
    one two three
    one two three
    one two three
    one two three

    And the word four get replaced by three.

    Regards
    Sagar.

  2. #2

    Default

    Hi

    The replace command provided by Sagar is really helpful while replacing ip address and hacked contents of particular site.

    Thanks sagar... keep it up
    Regards,
    Tukaram
    System Admin
    Host.co.in

  3. #3
    Join Date
    Jan 2011
    Posts
    5

    Default

    Replaces files in the destination directory with files in the source directory that have the same name. You can also use replace to add unique file names to the destination directory.

Bookmarks

Posting Permissions

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