fork download
  1. sed --version
  2. echo abcdefghijkl | sed 'h;G;s/\(a.*\).*\1/(\1)/i'
  3.  
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
sed (GNU sed) 4.4
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://g...content-available-to-author-only...u.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
and Paolo Bonzini.
GNU sed home page: <http://w...content-available-to-author-only...u.org/software/sed/>.
General help using GNU software: <http://w...content-available-to-author-only...u.org/gethelp/>.
E-mail bug reports to: <bug-sed@gnu.org>.
(abcdefghijkl)