removing certain tabs

I have a tab delimited file with many lines, one for each record.

each line is tab delimited with a tab before the first data field, a tab between each data field, and a tab after the last data field before it moves onto the next line.

I need to remove only the preceeding tab before the first data field and the tab after the last data field.

I'm sure this can be done with sed, but I don't really know the command that well.

Can anyone help?

Can you put some sample input data here and sample of the output you want?

Hi you can try something like this........

cat test | sed -e 's/^ //g' -e 's/ $//g' > 1

regards
Apoorva Kumar