SyntaxFix
Write A Post
Hire A Developer
Questions
awk
awk '{gsub(/two.*/,"")}1' file
Ruby
ruby -ne 'print $_.gsub(/two.*/,"")' file