Find the answer to your Linux question:
Results 1 to 5 of 5
hi can someone help me with above cmd......
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    3

    what does sed 's!/!!' do?

    hi can someone help me with above cmd...

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    However I ain't really known with sed much. I guess it removes every / from the input and echos it back.

    Since in Perl RegEx and by quickly poking in the Manual of sed I noticed that s is replace in RegEx.
    ! is the seperator.
    Thus
    s -> Replace
    ! -> seperator
    / -> To Replace
    ! -> seperator
    <Nothing> -> Replace With
    !-> seperator

    However this is a really aimed guess you should read sed manuals to be 100% sure.

    Cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

  3. #3
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    845
    It deletes the first forward slash in a string
    Linux User #453176

  4. #4
    Just Joined!
    Join Date
    Nov 2009
    Posts
    3
    Hi thanks a lot

  5. #5
    Just Joined!
    Join Date
    Nov 2009
    Posts
    3
    I just checked it..
    It does delete all / in the file..

Posting Permissions

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