VAR=123
(( ${#VAR} == 3 ))
Ho to do similiar test for columns delimetered with space(es) or tab(s) ?
I need to be sure that I have exactly N columns in raw.
-------------------------------
cat list |&
while read -p
do
(( ${#REPLY} == 3 )) && set `echo $REPLY` <--- here should test for columns
.....
-------------------------------
"list" file contains lines with columns delimeteres either by space(es) or tab(s-)
(( ${#VAR} == 3 ))
Ho to do similiar test for columns delimetered with space(es) or tab(s) ?
I need to be sure that I have exactly N columns in raw.
-------------------------------
cat list |&
while read -p
do
(( ${#REPLY} == 3 )) && set `echo $REPLY` <--- here should test for columns
.....
-------------------------------
"list" file contains lines with columns delimeteres either by space(es) or tab(s-)