[geeks] Thoughts on bash for root
Joshua D Boyd
jdboyd at cs.millersville.edu
Sun Apr 21 14:11:03 CDT 2002
On Sun, Apr 21, 2002 at 03:02:50PM -0400, Greg A. Woods wrote:
> [ On Sunday, April 21, 2002 at 14:05:11 (-0400), Joshua D Boyd wrote: ]
> > Subject: Re: [geeks] Thoughts on bash for root
> >
> > Perhaps I should have been more specific about what I meant by scripts. I
> > meant short things that are maybe 10 lines long on rare occasions, more
> > likely 4-5.
>
> If you're not writing those in strict Bourne shell then you're not
> practicing your shell scripting skills enough! :-)
>
> (FYI, I just call such things "commands" -- who ever bothers to save
> such short simple little things to files, other than the history file?)
I do. For instance, makeps:
cp $1 /tmp
pushd .
cd /tmp
latex /tmp/$1 -o $1.dvi && dvips -o$1.ps $1.dvi
popd
cp /tmp/$1.ps .
It is darn crude, but I use it over and over again to build ps files without
clogging my home dir with the temp files. Now if only I'd find the motivation
to strip the .tex from the extension so that when I do makeps myfile.tex I
get myfile.ps rather than myfile.tex.ps. I'm sure there must be an easy, way
but that is definately the realm of diminishing returns for now.
--
Joshua D. Boyd
More information about the geeks
mailing list