Re: how to write this simple script command?
- From: www <www@xxxxxxxxxx>
- Date: Thu, 31 Jan 2008 09:59:40 -0500
Lew Pitcher wrote:
begin sample script a2pdf
#!/bin/bash
# Usage: a2pdf path-to-text-file
rm -f temp.ps
a2ps --output=temp.ps $1
ps2pdf temp.ps
rm -f temp.ps
end sample script a2pdf
Thank you. I have just figured out myself. Following is better, because foo.txt will get foo.txt.pdf and bar.txt will get bar.txt.pdf
#!/bin/bash
a2ps --output=$1.ps $1
ps2pdf $1.ps
rm -f $1.ps
.
- Follow-Ups:
- Re: how to write this simple script command?
- From: Keith Keller
- Re: how to write this simple script command?
- From: Lew Pitcher
- Re: how to write this simple script command?
- References:
- how to write this simple script command?
- From: www
- Re: how to write this simple script command?
- From: Lew Pitcher
- how to write this simple script command?
- Prev by Date: Re: how to write this simple script command?
- Next by Date: Re: how to write this simple script command?
- Previous by thread: Re: how to write this simple script command?
- Next by thread: Re: how to write this simple script command?
- Index(es):