I want to remove a line that has empty string at second field when I use cut with delimeter , like below
$cat demo
hello, mum
hello,
#!/bin/sh
while read line
do
if [ `cut -f 2 -d "," "$line" = "" ]
then
# remove the current line command goes here
fi
done < "demo"
i got an error message for above command and I have no idea how to remove current line