How do you break the regex for instructions into multiple lines with a script file?
I currently have more than 9 regex groups and want to still use sed in a script file. How does one break up the instructions?
Thanks
I would like to use sed -E -f thiscode.txt file.txt
s/([^ ]*) ([^ ]*) ([^,]*), *([^,]*), *([^,]*), *([^.]*), *([^,]*) *([^,]), ([^.]*), *([^,]*) *([^,]), ([^ ]*) *([^,]*) *([^.]*). ([^ ]*)./\2, \1, \3, ``\4," \6} \8,{\10} \6 \12/
Per a suggestion, I deleted /5 /7 and /9
sed -E 's/([^ ]*) ([^ ]*) ([^,]*), ([^,]), ([^.]), ([^,]), *([^,]) ([^,]), ([^ ]) ([^,]) ([^.]). ([^ ]*)./\2, \1, \3, ``\4," \5 \6, \7 \5 \9/'