10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to select 2nd, 3rd columns if line has "key3" and print rest of the lines as is.
# This is my sample input
key1="val1" key2="val2" key3="val3" key4="val4"
some text some text
some text some text
key1="val1" key2="val2" key3="val3" key4="val4"
some text some text
some text some... (3 Replies)
Discussion started by: kchinnam
3 Replies
2. Shell Programming and Scripting
Hi
I need to do a patten match between files .
I am new to shell scripting and have come up with this so far. It take 50 seconds to process files of 2mb size . I need to tune this code as file size will be around 50mb and need to save time.
Main issue is that I need to search the pattern from... (2 Replies)
Discussion started by: nitin_daharwal
2 Replies
3. Shell Programming and Scripting
Hello,
I have script which work 70% of the desired task , the output from script.sh is following , however the desired output I require is following .
Any piece of suggestion would be great..
thanks in advance,
emily
#!/bin/bash ... (8 Replies)
Discussion started by: emily
8 Replies
4. Shell Programming and Scripting
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)
Discussion started by: swayam123
4 Replies
5. Shell Programming and Scripting
Hi,
I am really new in the shell script, but it is really useful for me to learn.
I have one question,
I have a large text document (actually few of them), inside there are lines with information about energies, between 10 to 20 of this lines, varies from one doc to another one, my questions... (11 Replies)
Discussion started by: hmartine1983
11 Replies
6. Shell Programming and Scripting
Greetings,
I am writing a script which requires as a part, selecting all the lines between the first and last occurrence of a pattern.
I have an nawk alternative that is working. But thre should be a generic script that should run on all os viz, linux, sun , aix.
The awk script that i... (25 Replies)
Discussion started by: usha rao
25 Replies
7. Shell Programming and Scripting
I have some absolute file location
$INSTALL_BASEPATH/onereview-5.0/resources/commons-messages/commonmessages_default.properties
$INSTALL_BASEPATH/onereview-5.0/orv-deploy/config-console.war/WEB-INF/classes/com/connectiva/configuration/console/resource/configurationBundle.properties
I need to... (3 Replies)
Discussion started by: mnmonu
3 Replies
8. Shell Programming and Scripting
Hi I have i doubt, actually i have to select everything before a word(pattern).For that i am using sed
i am using the below line of code but it is not working i am getting a blank instead..
sed -n '/regexp/{g;1!p;};h' file1
Can anyone help?
Thanks (15 Replies)
Discussion started by: usha rao
15 Replies
9. Shell Programming and Scripting
Hey,
examples of the input (text line):
/bla/blMOasdn234.adanif24/blabla.rar
/bla/blMOasdn234.adanif24/blabla23124.bin
/bla/bla/bla/bla/bla/bla.bin
and what I need to do is extract/select only the dir path so the output would be:
/bla/blMOasdn234.adanif24/
/bla/blMOasdn234.adanif24/... (4 Replies)
Discussion started by: TehOne
4 Replies
10. UNIX for Dummies Questions & Answers
I have huge file. I want to copy the lines which have first character as 2 or 7, and also which has fist two characters as 90. I need only these records from file. How I can acheive this. Can somebody help me..... (2 Replies)
Discussion started by: cs_banda
2 Replies
canvasLabel(n) canvasLabel class canvasLabel(n)
__________________________________________________________________________________________________________________________________________________
NAME
canvasLabel - tkpiechart canvas label class
SYNOPSIS
package require stooop 4.1
package require switched 2.2
package require tkpiechart 6.6
stooop::new canvasLabel canvas ?options?
switched::configure canvasLabelObject ?options?
switched::cget canvasLabelObject option
stooop::delete canvasLabelObject
_________________________________________________________________
DESCRIPTION
The canvasLabel class brings some Tk label widget functionality to the canvas text item, such as a background and a border.
The canvasLabel is built with a bullet rectangle on the left side of the text. The relief changes according to the select state, with a
traditionally sunken relief when selected.
The label has a specific tag, which can be used to retrieve the coordinates of the object or move it, thanks to the canvas facilities.
stooop::new canvasLabel canvas ?options?
Creates a canvasLabel object in the specified Tk canvas. The canvasLabel object identifier is returned (referred to as canvasLabe-
lObject in this document).
switched::configure canvasLabelObject ?options?
Configures a canvasLabel object or returns all the options with their current values if no options are passed as parameters.
switched::cget canvasLabelObject option
Returns an option value for the specified canvasLabel object.
stooop::delete canvasLabelObject
Deletes the specified canvasLabel object.
OPTIONS
-anchor value
Specifies the anchor position of the rectangle and the text, relative to the positioning point. The behavior is similar to the
-anchor option of the canvas text item, except that the rectangle is taken into account. The default is center.
-background color
Specifies the background color of the bullet rectangle, as in the -fill option of the canvas rectangle item. The default is trans-
parent (empty string).
-bordercolor color
Specifies the border color of the rectangle, as in the -outline option of the canvas rectangle item. The default is black.
-borderwidth value
Specifies the border width of the rectangle, as in the -width option of the canvas rectangle item. By default, the width is 1 pixel,
which is the minimum width.
-bulletwidth value
Specifies the width of the rectangle placed to the left of the text. Defaults to 10.
-font value
Specifies the font of the text, as in the -font option of the canvas text item. The default is system dependent.
-foreground color
Specifies the color of the text, as in the -fill option of the canvas text item. The default is black.
-justify value
Specifies how to justify the text, as in the -justify option of the canvas text item. The default is left.
-minimumwidth value
The total label width will not go below the specified value, but may be larger if the label text requires it.
-padding value
Specifies how much space to leave between the text and the closest rectangle edge. Units are identical to those specified in the
canvas COORDINATES manual section.
-scale list
List of 2 floating point numbers used to set the scaling factor in the x and y axis. Scaling is applied immediately and defaults to
1.
-select boolean
Sets the label state.
-selectrelief value
Either flat, raised or sunken. Specifies the 3D effect desired for the text area when the label is selected.
-stipple bitmap
Specifies the stipple pattern filling the rectangle, as in the -stipple option of the canvas rectangle item. There is no bitmap by
default.
-text text
Specifies the string to be displayed in the text area, as in the -text option of the canvas text item. The default is an empty
string.
-textbackground color
Specifies the color of the text area background.
-width value
Specifies a maximum line length for the text, as in the -width option of the canvas text item. The default is 0.
TAGS
The labeler has the following specific tag (see the canvas manual page ITEM IDS AND TAGS section for more information):
o canvasLabel(canvasLabelObject)
SEE ALSO
pie, pieBoxLabeler, piePeripheralLabeler
KEYWORDS
canvas, labeler, pie, slice
COPYRIGHT
Copyright (c) 1995-2004 Jean-Luc Fontaine <jfontain@free.fr>
tkpiechart 6.6 canvasLabel(n)