Wadza question in the *BSD/*nix world?
echo " " >> tgt
If I feel adventurous, I would consider
echo $(cat....
or even highlight and middel-click into xedit.
I have collections of tiny wrappers I sometimes (for fun) consolidate in zenity as front-end.
Next step, use xdialog or even dialog.
Ffff! !
Get the job done, and if it ain't broken, don't fix it!
Basically my IDE is cut'n paste.