I do not speak much English so I was confused when exposed here, sorryyyy.
my OS is debian squeeze/sid
ROWS to LINES : you're right
netstat.bin: my own script
/dev/zero: data sink for resize output
running your script
[nothing_user[01:47 AM][~]]$ cat ./test.sh
resize -s 24 108 >/dev/null
netstat $* | less
resize -s $old_rows $old_columns >/dev/null
[nothing_user[01:47 AM][~]]$ ./test.sh
+ resize -s 24 108
+ resize -s
can you see that?? old_rows and old_columns are empty!!!
I don't know what happend
I think both script should be work