View Single Post
Old May 10th, 2005, 1:11 PM   #2
Seamus
Newbie
 
Join Date: May 2005
Posts: 5
Rep Power: 0 Seamus is on a distinguished road
for the first will
echo "$9 $8 $7 $6 $5 $4 $3 $2 $1"
do?

Second:
#! /bin/bash
a=`cat file | perl -nle "print for m/^[0-9]*/g"`
b=`echo $a | tr ' ' '+'`
((c=$b))
echo $c

Last edited by Seamus; May 10th, 2005 at 1:28 PM. Reason: Forgot code blocks
Seamus is offline   Reply With Quote