Sed: couldn't write 1378 items to stdout: No space left on device

Hi ,
In file first line start with "[ and end of line with "]",when trying to remove using sed i am getting the below error .Please advise

sed -e 's/[�[]//g' -e 's/[]$]//g' segment1.txt >>segment_m1
sed: couldn't write 1378 items to stdout: No space left on device

Thanks,
Mohan

Take a look at the disk/file system that your output file resides upon - it should be pretty FULL. Redirect to another file system and try to clean up the full one.