Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Alias For Dvips
post Jun 10 2003, 10:17 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 21
Joined: 2-June 03
Member No.: 913


I use dvips all the time. It is a program that take a dvi file and change it to a ps format.
The default when entering
dvips file.dvi
is sending the resulting ps format to the printer.

I would like the following as the default: a ps file is created called
(This was the the setup in the old system.)

Since I don't know much about setting up aliasis with many levels of quotes, I don't have a simple solution. The best I can come up with is

1) copy dvips to mydvips in my own bin directory (it is in the path)

2) create a file called dvipssource with just one line
mydvips -o `basename $1 .dvi`.ps `basename $1 .dvi`.dvi

3) alias dvips 'source $HOME/dvipssource'

How do make it a one-liner? The following doesn't work

alias dvips 'dvips -o `basename $1 .dvi`.ps `basename $1 .dvi`.dvi'

Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 18th July 2018 - 09:22 AM