daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 16th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. s/"([^"]*)$([a-zA-Z0-9:]*)([^"]*)"/"1${2}3"/g
  2.    
  3. sed -e ':loop' -e 's/"([^"]*)$([a-zA-Z0-9:]{1,})([^"]*)"/"1${2}3"/' -e 't loop'
  4.    
  5. sed -e ':loop' -e 's/^([^"]*("[^"]*"[^"]*)*)"([^"]*)$([a-zA-Z0-9:]{1,})([^"]*)"/1"3${4}5"/' -e 't loop'
  6.    
  7. echo 'a "$a" b $b "b $b b $b" $c c $c "$c c $c"' |
  8. sed 's/"([^"]*)"/"n1n"/g;:a;s/nn//;ta;s/n$([a-zA-Z0-9:]+)/${1}n/;ta;s/n(.)/1n/;ta'
  9. a "${a}" b $b "b ${b} b ${b}" $c c $c "${c} c ${c}"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top