Apr 10, 2017 #1 ffaabbrriiccee Programmer Joined Mar 29, 2017 Messages 1 Location US if i have +2, i want this to be + 2 as separate columns. Doing this for a large column so I cannot do it manually.
if i have +2, i want this to be + 2 as separate columns. Doing this for a large column so I cannot do it manually.
Apr 10, 2017 #2 mikrom Programmer Joined Mar 27, 2002 Messages 3,019 Location SK You can use regular expression substitution with back reference. For example with sed it could be something like this Code: $ echo "+2 +3 +123" | sed -E "s/\+([0-9]+)/+ \1/g" + 2 + 3 + 123 Upvote 0 Downvote
You can use regular expression substitution with back reference. For example with sed it could be something like this Code: $ echo "+2 +3 +123" | sed -E "s/\+([0-9]+)/+ \1/g" + 2 + 3 + 123