Let me be specific: NOT using variable in sed 1st command but assigning sed output to variable in bash shell, THEN using variable in 2nd sed command to append variable string to end of string in target file.
In bash shell is this possible...mvstr='sed s/^#.../&/'
Why do this? Trying to delete search pattern "#..." at beginning of line in file and append to end of string in same file.
$MVSTR may be #spx, #loc, #con Second sed command? s/"$MVSTR"/$;\"/w line terminates with ;" and write file
Is there a one-liner to accomplish this in 8000 files?