---
title: "shell中计算"
author: "standalone"
date: "2009-10-15T14:56:35Z"
tags: []
categories: ["编程语言"]
slug: "shell"
draft: false
lastmod: "2009-10-15T14:56:35Z"
id: 491333
url: "https://standalone.iteye.com/blog/491333"
---

a=10  
b=2  
c=$\[ $a + $b ]  
echo $c