Search Results

Search: Posts Made By: meetsubhas
1,745
Posted By m.d.ludwig
This sounds a bit like homework :-) #!...
This sounds a bit like homework :-)
#! /bin/bash

while read n; do
(( t += n ))
printf " %6d\n" ${n}
done

echo ' ======'
printf "Total %6d\n" ${t}
To run:
./scriptname <...
Showing results 1 to 1 of 1

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