Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. cat
  2.  
  3. echo "Le first file name, good sir/lass: "
  4. read file1
  5.  
  6. echo "How about the second file name, good sir/lass: "
  7. read file2
  8.  
  9. content1=`cat $file1`
  10. content2=`cat $file2`
  11.  
  12. content3=`expr $content1 / $content2`
  13.  
  14. echo "$content3" > $file1
  15.  
  16. echo "The answer is $content3. The result has also been stored on the first file named $file1."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement