Re: how to write this simple script command?
- From: Lew Pitcher <lpitcher@xxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 07:18:15 -0800 (PST)
On Jan 31, 9:59 am, www <w...@xxxxxxxxxx> wrote:
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
Agreed.
.
- References:
- how to write this simple script command?
- From: www
- Re: how to write this simple script command?
- From: Lew Pitcher
- Re: how to write this simple script command?
- From: www
- how to write this simple script command?
- Prev by Date: Re: how to write this simple script command?
- Next by Date: /bin/bash: bad interpreter: Text file busy
- Previous by thread: Re: how to write this simple script command?
- Next by thread: Re: how to write this simple script command?
- Index(es):