multiple sed commands

hello!
I have a few sed commands
sed '/^$/d' < $1 > tmp.t
sed '/^ \{3,\}/d' < tmp.t > tmp1.txt
.....
how can I write them in a single line?

sed '/^$/d' < $1 > | '/^ \{3,\}/d' < $1 > tmp1.txt

any idea?

thanks.

I assume you want to remove all the empty lines in the files.

sed -e "/^[ <tab>]*$/d" < $1 > tmp.t

>I assume you want to remove all the empty lines in the files.

no!

I want in general,to use multiple sed commands,not just to delete empty lines.

any idea unix guys??

help me!

thanks.

I think u want this........
sed -e '/^$/d' -e '/^ \{3,\}/d' Inputfilename
but beware it may not give the same result as the sequential application of the same commands....
Regards.

or separate multiple sed commands with semicolons:

sed '/^$/d;/^ \{3,\}/d' < $1 > tmp1.txt

cheers