for t in 's/$/ /' j; do echo -e 'g/\/.,/\/'"$t"'\nwq' | ed -sl filename