Search Results

Search: Posts Made By: Arsh10
2,023
Posted By ahamed101
Try this... echo "123456 1 1 0 1 1 0 1 0 0 0...
Try this...

echo "123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25" | awk '{for(i=2;i<=NF;i++){sum+=$i}print sum}'

#a crude way
echo "123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25" | sed 's/^[0-9]*...
Showing results 1 to 1 of 1

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