2 edited body
source | link

How about:

sed '
  /myFunc()/!b
  :1 
  s/;/; SNIPPET/;t
  N;b1'n;b1'

Or for line 13:

sed '
  13!b
  :1 
  s/;/; SNIPPET/;t
  N;b1'n;b1'

How about:

sed '
  /myFunc()/!b
  :1 
  s/;/; SNIPPET/;t
  N;b1'

Or for line 13:

sed '
  13!b
  :1 
  s/;/; SNIPPET/;t
  N;b1'

How about:

sed '
  /myFunc()/!b
  :1 
  s/;/; SNIPPET/;t
  n;b1'

Or for line 13:

sed '
  13!b
  :1 
  s/;/; SNIPPET/;t
  n;b1'
1
source | link

How about:

sed '
  /myFunc()/!b
  :1 
  s/;/; SNIPPET/;t
  N;b1'

Or for line 13:

sed '
  13!b
  :1 
  s/;/; SNIPPET/;t
  N;b1'