Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed bahs

user@cs ~/ $echo -e "I like soccer
You like football" 
| sed '/soccer/c Nobody likes soccer'
Nobody likes soccer
You like football
user@cs ~/ $cat bar.txt
One
Two
user@cs ~/ $sed '/One/c 1' bar.txt
1
Two
 
PREVIOUS NEXT
Tagged: #sed #bahs
ADD COMMENT
Topic
Name
5+2 =