scripting

between -L and -n on fileB is delimited byspaces. I am trying to place fileA numbersbetween -L and -n in the space. I have been trying awk but I have not found the correct syntacs as of yet. Can anyone help?