Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed replace all until match in line

echo remove_staystay... | sed 's/.*(stay.*)/1/g'
stay	#remove all but from last ocurrence match until end
 
PREVIOUS NEXT
Tagged: #sed #replace #match #line
ADD COMMENT
Topic
Name
6+7 =