07-26-2009
16,
0
Join Date: Jul 2009
Last Activity: 26 July 2009, 6:51 PM EDT
Posts: 16
Thanks Given: 0
Thanked 0 Times in 0 Posts
error while using cut
im reading in a file line by line and trying to cut part of it but it wont work and is giving me this error
ipaddress=`cut -d ' ' -f 2 $line`
im getting this error
work1: line 23: [: : unary operator expected
Does anyone know what the correct syntax should be?