I am really sorry for not providing more info ....
Will the below example of the file help ..
If I will use the commands provided earlier it will return Name it self 4 times ..
While I need the name along with the Prompt,default,paramtype,paramlength,ParamScale
Last edited by Scrutinizer; 06-12-2012 at 07:28 AM..
Reason: cod stage
I want to search a file for a string and then if the string is found I need the line that the string is on - but also the previous two lines from the file (that the pattern will not be found in)
This is on solaris
Can you help? (2 Replies)
Hi,
I am new to this forum and i would like to get help in this issue.
I have a file 1.txt as shown:
apple
banana
orange
apple
grapes
banana
orange
grapes
orange
....
Now i would like to search for pattern say apple or orange and then put a # at the beginning of the pattern... (2 Replies)
Hi,
I think you ppl did not get my question correctly, let me explain
I have 1.txt with following entries as shown:
0152364|134444|10.20.30.40|015236433
0233654|122555|10.20.30.50|023365433
**
**
**
In file 2.txt I have the following entries as shown:
... (1 Reply)
I am trying to do some thing like this ..
In a file , if pattern found insert new pattern at the begining of the line containing the pattern.
example:
in a file I have this.
gtrow0unit1/gctunit_crrownorth_stage5_outnet_feedthru_pin
if i find feedthru_pin want to insert !! at the... (7 Replies)
Hi all,
I am trying to extract the values ( text between the xml tags) based on the Order Number.
here is the sample input
<?xml version="1.0" encoding="UTF-8"?>
<NJCustomer>
<Header>
<MessageIdentifier>Y504173382</MessageIdentifier>
... (13 Replies)
I am trying to search a file for a patterns ERR- in a file and return a count for each of the error reported
Input file is a free flowing file without any format
example of output
ERR-00001=5
....
ERR-01010=10
.....
ERR-99999=10 (4 Replies)
Hi,
I have two files file1.txt and file2.txt. Please see the attachments.
In file2.txt (which actually is a diff output between two versions of file1.txt.), I extract the pattern corresponding to 1172c1172. Now ,In file1.txt I have to search for this pattern 1172c1172 and if found, I have to... (9 Replies)
Hi,
I've written a script to search for an Oracle ORA- error on a log file, print that line and the .trc file associated with it as well as the dateline of when I assumed the error occured. In most it is the first dateline previous to the error.
Unfortunately, this is not a fool proof script.... (2 Replies)
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
LEARN ABOUT DEBIAN
shanty
SHANTY(1) Shanty SHANTY(1)NAME
Shanty - Makes a PostScript file from an image and some text.
SYNOPSIS
shanty -i image_file [-t text_file] [-o output_file] [-s paper_size] [-d density] [-m margin] [-b background_color] [-x padding] [-n title]
[-l orientation] [-rtl] [-btt] [-f font_name] [-altgd]
DESCRIPTION
Shanty takes a text file and an image (PNG or JPG) and creates a PostScript file where one pixel in the image becomes one character in the
PostScript.
OPTIONS -i, -image
Name of the image to load in. JPG and PNG images are supported. This is the only compulsory field.
-t, -text Name of the text file to load in, if omitted STDIN is used.
-o, -output
Name of the PostScript file to produce, if omitted STDOUT is used.
-s, -size Size of the paper to work with. This field should be one of: "a0", "a2", "a3", "a4", "a5", "a6", "letter", "broadsheet",
"ledger", "tabloid", "legal", "executive" and "36x36". Default is "a4".
-d, -density
Density of the text. Higher numbers are more dense, default is 1.4.
-m, -margin
The margins of the page in cm. Default is 1.
-b, -background
The colour of a backing rectangle to place behind the text. Colours are specified as "R,G,B" with each value between 0 and 255.
"off" means no backing colour. Default is "off".
-x, -p, -padding
Density of the text. Higher numbers are more dense, default is 1.4.
-n, -title
The title of the output to write as meta-data in the PostScript file. Default is "Shanty output".
-l, -orientation
The orientation of the paper, can be "portrait", "landscape" or "auto". Default is "auto".
-rtl Switch to right-to-left text.
-btt Switch to bottom-to-top text.
-f, -font Specify font. The font name specified must be visible to the not just make a font magically appear. Default is "Courier-Bold".
-altgd If you have problems loading the GD library, try this switch.
HOMEPAGE
<http://www.codebunny.org/coding/shanty/>
AUTHOR
Duncan Martin <duncan@codebunny.org>
ACKNOWLEDGEMENTS
Many thanks to DFB <http://www.cs.nott.ac.uk/~dfb/> and contributors to comp.lang.postscript.
Duncan Martin 6 October 2006 SHANTY(1)