Results 1 to 5 of 5
hi can someone help me with above cmd......
- 11-03-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 3
what does sed 's!/!!' do?
hi can someone help me with above cmd...
- 11-03-2009 #2
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
- 11-03-2009 #3
It deletes the first forward slash in a string
Linux User #453176
- 11-04-2009 #4Just Joined!
- Join Date
- Nov 2009
- Posts
- 3
Hi thanks a lot
- 11-04-2009 #5Just Joined!
- Join Date
- Nov 2009
- Posts
- 3
I just checked it..
It does delete all / in the file..


Reply With Quote
