How do I change directories to a path given by input variable in Korn Shell?
e.g. I tired with the Korn Shell below but it doesn't work.
----------------------------------
#!/bin/ksh
echo "Enter folder name: \c"
read folder
cd $folder
----------------------------------
Any help will... (5 Replies)
Hi,
I am working on a command that replaces some occurrences of quotation marks in file. The quotation mark cannot be the first or the last character in line and cannot be preceded or followed by a comma.
I am not an expert in regular expressions, but I managed to create the following... (2 Replies)
Hey all.
Easy question.
I have a (ksh) varaible x. It contains the following (for example): N557788
I want to replace the "N" with a "-".
I've done this before but for the life of me I cannot remember how I did it.
Thanks.
mtw (2 Replies)
Hi all,
I need a Korn Shell script that will go out to all Unix Servers and pull all non humans IDs from them while at the same time produce a file to show which servers we have access to and which ones we don't.
Thanks in advance. (5 Replies)
If I have a string defined as:
MyString=abcde
echo $MyString
How can I loop through it character by character? I haven't been able to find a way to index the string so that I loop through it.
shew01 (10 Replies)
Hi guys , i need help so bad on this issue..
Basically i have to delete the line continuation symbol of first column variable and add the truncated part of that word in next line to first line.
here i written sample 3 lines but originally i have bunch of lines in that file.
client1_day- ... (3 Replies)
I am attempting to write a korn shell script that does the following, but I am getting errors. I'm new to korn shell scripting and am not sure what I am doing wrong. Please help with example scripts. Thanks.
1) check for day of the week
2) if day of the week is Monday then check for the... (4 Replies)
Discussion started by: ijmoore
4 Replies
LEARN ABOUT SUSE
ps2epsi
PS2EPSI(1) Ghostscript Tools PS2EPSI(1)NAME
ps2epsi - generate conforming Encapsulated PostScript
SYNOPSIS
ps2epsi infile.ps [ outfile.epsi ] (Unix)
ps2epsi infile.ps [ outfile.epi ] (DOS)
DESCRIPTION
ps2epsi uses gs(1) to process a PostScript(tm) file and generate as output a new file which conforms to Adobe's Encapsulated PostScript
Interchange (EPSI) format. EPSI is a special form of encapsulated PostScript (EPS) which adds to the beginning of the file in the form of
PostScript comments a bitmapped version of the final displayed page. Programs which understand EPSI (usually word processors or DTP pro-
grams) can use this bitmap to give a preview version on screen of the PostScript. The displayed quality is often not very good (e.g., low
resolution, no colours), but the final printed version uses the real PostScript, and thus has the normal PostScript quality.
USAGE
On Unix systems invoke ps2epsi like this:
ps2epsi infile.ps [ outfile.epsi ]
where "infile.ps" is the input file and "outfile.epsi" is the resulting EPSI file. If the output filename is omitted, it is generated from
the input filename. When a standard extension (".ps", ".cps", ".eps" or ".epsf") is used, it is replaced with the output extension
".epsi". On DOS systems the command is:
ps2epsi infile.ps outfile.epi
where "infile.ps" is the original PostScript file, and "outfile.epi" is the name of the output file.
LIMITATIONS
Not every PostScript file can be encapsulated successfully, because there are restrictions on what PostScript constructs a correct encapsu-
lated file may contain. ps2epsi does a little extra work to try to help encapsulation, and it automatically calculates the bounding box
required for all encapsulated PostScript files, so most of the time it does a pretty good job. There are certain to be cases, however,
where the encapsulation does not work because of the content of the original PostScript file.
COMPATIBILITY
The Framemaker DTP system is one application which understands EPSI files, and ps2epsi has been tested on a number of PostScript diagrams
from a variety of sources, using Framemaker 3.0 on a Sun workstation. Framemaker on other platforms should be able to use these files,
although I have not been able to test this.
FILES
ps2epsi Unix shell script
ps2epsi.bat DOS batch file
ps2epsi.ps the Ghostscript program which does the work
SEE ALSO
gs (1)
VERSION
This document was last revised for Ghostscript version 8.70. However, the content may be obsolete, or inconsistent with ps2epsi.txt.
AUTHOR
George Cameron
8.70 31 July 2009 PS2EPSI(1)