---
title: "小工具 cl-launch , 创建 lisp 执行脚本"
author: "winzenghua"
date: "2010-07-28T21:37:00Z"
tags: []
slug: "cl-launch-lisp"
draft: false
lastmod: "2010-07-28T21:37:00Z"
id: 954737
url: "https://java4gis.iteye.com/blog/954737"
---

Linux下的一个小工具，可以把lisp代码直接变成shell 脚本。 其实就是封装了一下代码，调用解释器。不过确实方便多了。

使用方式：

直接执行一个表达式：

$ cl-launch '(+ 3 5)'  
8

$ cl-launch --file hello.lisp

120

执行一个文件

把一个lisp源文件转成 shell

$ cl-launch --file hello.lisp --output hello.sh