Skip to content

Instantly share code, notes, and snippets.

@tamirko
Created August 1, 2017 07:52
Show Gist options
  • Save tamirko/6f1f4993a539efddcfa29dddadc46af9 to your computer and use it in GitHub Desktop.
Save tamirko/6f1f4993a539efddcfa29dddadc46af9 to your computer and use it in GitHub Desktop.
group groups grouping regular expressions regex regexp
# group groups grouping regular expressions regex regexp
sed -e "s+\(.*\)\(, .*$\)+\1+g"
export x="00:00:52.76, start"
export y=`echo $x | sed -e "s+\(.*\)\(, .*$\)+\1+g"`
echo -${y}-
# Output :
#-00:00:52.76-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment