---
title: "shell脚本自动化部署项目"
author: "weilingfeng98"
date: "2013-01-08T17:05:57Z"
tags: []
categories: ["操作系统"]
slug: "shell"
draft: false
lastmod: "2013-01-08T17:05:57Z"
id: 1766369
url: "https://weilingfeng98.iteye.com/blog/1766369"
---

最经学习shell脚本，并自己写了一个自动下载代码，自动打包的脚本程序，这对自动化部署非常有用，


```java
$n        $1 the first parameter,$2 the second... 
$#        The number of command-line parameters. 
$0        The name of current program. 
$?        Last command or function's return value. 
$$        The program's PID. 
$!        Last program's PID. 
$@        Save all the parameters.
```