Search Results

Search: Posts Made By: sandy1028
1,600
Posted By sandy1028
When i executed the command, awk 'NR>1 {for...
When i executed the command,

awk 'NR>1 {for (i=1;i<=NF;i++) if ($i!=0) a++}END {if (a>0) print a, "not all the values in file are zero"}' urfile

2 not all the values in file are zero

I have...
1,600
Posted By sandy1028
Check values in file
Hi,

I have a tab delimited file in which first row is the header and others rows has the values.

A B C D
2 4 0.00 3.00
0.00 9.78 4654 898

I have to check whether all the values are zero.
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy