The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 03-18-2009
vincyoxy vincyoxy is offline
Registered User
  
 

Join Date: Mar 2009
Location: Singapore
Posts: 12
Thks.
But i cant use that way cox
i have 2 file.
FIRST file contain
15
16
17


SECOND file contain
40
46
48

code is :-
set A = `awk '{print $1}' FIRST |awk '{array[NR]=$0} END {print array[x];}'`
set B = `awk '{print $1}' SECOND |awk '{array[NR]=$0} END {print array[x];}'`
set C = `expr $A \* 2 + $B`
echo "$C"

and i wan get outcome is: -
70
78
82

There is another way to edit or nt?