Hi bunnyG,
I do not know what you realy want.
I hope this solution can help you out
# using scripting language add a "*/" in a file
FO="dbforum12.org" #FILE_ORIGINAL
FN="dbforum12.new" #FILE_NEW
BS="12345" #BEGIN_STRING to add "/*"
ES="0987" #END_STRING to add "*/"
cat $FO | awk -v BS=$BS -v ES=$ES -v FN=$FN ' BEGIN { FS="@";OK=0 }
{
OK = 0
if ($1 == BS )
{
print "/*"$1 > FN
OK=1
}
if ($1 == ES )
{
print $1"*/" > FN
OK=1
}
if (OK == 0 )
{
print $1 > FN
}
}'