9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the bash below which does execute I am trying to extract the contents of ${id} is 1234, as ${id} stores the variable that changes each time.
After the path is removed the contents of ${id} are stored in pref, so they can be used in the output. Currently I am not able to extract the 1234 in the... (6 Replies)
Discussion started by: cmccabe
6 Replies
2. Shell Programming and Scripting
Hi guys,
I am building a parent script which will call three scripts internally and i would like to run them in sequence manner, i.e. once previous script is successful then only i need to proceed with next else need to fail. I am running in bash mode and flavour is sun
main_script.sh
sh... (8 Replies)
Discussion started by: Master_Mind
8 Replies
3. Shell Programming and Scripting
Hello experts, I want to join a file with files whosE names are mentioned in one of the columns of the same file.
File 1
t1,a,b,file number 1
t1,a,c,file number 1
t2,c,d,file number 2
t2,c,e,file number 2
t2,c,f,file number 2
t2,c,g,file number 2
t3,e,f,file number 3
file number 1... (3 Replies)
Discussion started by: ritakadm
3 Replies
4. UNIX for Dummies Questions & Answers
:confused:Hi All,
I have created a common shell scripts which accepts 1 input variable which has the name of the datafile(v3_pcr2ecm_wkly_mainbase_maps_20120228.txt) and this name of the datafile keeps changing.
I need to remove .txt extension and create a new log file as... (2 Replies)
Discussion started by: abhi_123
2 Replies
5. UNIX and Linux Applications
Hi,
I am using EXIT command to log out of the server, But this logs me out of the Putty. Is there any way that I can still be present on Putty and just log out of the server.
Every time I have to open a new session of PUTTY for a new server (3 Replies)
Discussion started by: himvat
3 Replies
6. Shell Programming and Scripting
This is the sample input file
b 05/Jul/2010:07:00:10
a 05/Jul/2010:06:00:10
b 05/Jul/2010:07:00:10
c 05/Jul/2010:07:10:10
d 05/Jul/2010:08:00:10
e 05/Jul/2010:09:00:10
f 05/Jul/2010:10:00:10
h 05/Jul/2010:11:00:10
i 05/Jul/2010:12:00:10
j ... (9 Replies)
Discussion started by: sandy1028
9 Replies
7. Emergency UNIX and Linux Support
Hi,
I have two files say file 1 file 2
File1
1
2
4
5
File 2
asdf
adf
How to get the ouput something like
asdf1
adf1
asdf2
adf2
asdf4
adf4
asdf5 (5 Replies)
Discussion started by: ecearund
5 Replies
8. Shell Programming and Scripting
Following is input:
<P
align="justify"
><FONT size="+1" color="#221E1F">the tiny bundles of hairs that protrude from them. Waves in the fluid of the inner ear stimulate the hair cells. Like the rods and cones in the eye, the hair cells convert this physical stimulation into neural im<FONT... (1 Reply)
Discussion started by: parshant_bvcoe
1 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
crosshair(n) Crosshairs crosshair(n)
__________________________________________________________________________________________________________________________________________________
NAME
crosshair - Crosshairs for Tk canvas
SYNOPSIS
package require Tcl ?8.4?
package require Tk ?8.4?
package require crosshair ?1.0.2?
crosshair::crosshair w ?arg...?
crosshair::off w
crosshair::configure w ?arg...?
crosshair::track on w cmdprefix
crosshair::track off w
_________________________________________________________________
DESCRIPTION
The crosshair package provides commands to (de)activate and track crosshairs on canvas widgets.
API
The following commands are exported to the public:
crosshair::crosshair w ?arg...?
This command activates the display of a pair of cross-hairs for the canvas widget w. The cross-hairs track the pointing device. The
result of the command is the empty string.
All arguments after the widget w are treated as options as for a canvas line item in w. Of particular interest are -fill and -dash.
crosshair::off w
This command removes the cross-hairs from the canvas widget w. Nothing is done if the widget had no cross-hairs. The result of the
command is the empty string.
crosshair::configure w ?arg...?
This command changes the appearance of the cross-hairs in the canvas widget w. It is an error to call it for a canvas which has no
cross-hairs.
All arguments after the widget w are treated as options as for a canvas line item in w. Of particular interest are -fill and -dash.
The result of the command are the current configuration settings.
crosshair::track on w cmdprefix
This command activates reporting of the location of the cross-hairs in the canvas widget w. It is an error to use this command for a
canvas which has no cross-hairs. The result of the command is the empty string.
After the invokation of this command the specified command prefix cmdprefix will be called whenever the mouse moves within the can-
vas, with 7 arguments. These are, in order:
[1] The widget w
[2] The x-location of the cross-hairs, in pixels.
[3] The y-location of the cross-hairs, in pixels.
[4] The x-location of the top-left corner of the viewport, in pixels.
[5] The y-location of the top-left corner of the viewport, in pixels.
[6] The x-location of the bottom-right corner of the viewport, in pixels.
[7] The y-location of the bottom-right corner of the viewport, in pixels.
A previously existing callback for w will be disabled. I.e. per canvas widget with cross-hairs only one callback reporting their location
is possible.
crosshair::track off w
This command disables the reporting of the location of the cross-hairs in the canvas widget w. It is an error to use this command
for a canvas which has no cross-hairs. The result of the command is the empty string.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category tklib ::
crosshair of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you
may have for either package and/or documentation.
KEYWORDS
canvas, cross-hairs, location, tracking, viewport
COPYRIGHT
Copyright (c) 2003 Kevin Kenny
Copyright (c) 2008 (docs) Andreas Kupries <andreas_kupries@users.sourceforge.net>
crosshair 1.0.2 crosshair(n)