I'm reading 2 input files but not getting expected value.
I should get an alpha value on file_1_data but not getting any.
Please help.
>cat test6.sh
awk '
FILENAME==ARGV { file_1_data=$0; print "----- 1 Line " NR " -----" $1; next }
FILENAME==ARGV { file_2_data=$0; print "----- 2... (1 Reply)
Hi people. I am new to shell scripting, so I need a little help. I want to create a script named that takes an argument as a file, Read the input file and look for occurrences of the current username (say abc.xyz) who is executing the script. On finding an occurrence of the username take that line... (2 Replies)
Hi guys,
I am new to AWK and unix scripting. Please see below my problem and let me know if anyone you can help.
I have 2 input files (example given below)
Input file 2 is a standard file (it will not change) and we have to get the name (second column after comma) from it and append it... (5 Replies)
Okay, so I've looked on here and found some similar things, but not exactly what I am looking for. I am working on creating a script that can back up some files, based on the contents of another file - the configuration file.
First file contains the files to back up - we'll call this... (1 Reply)
Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .
Hi I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.
I want to create a mutiple output files with each file having a... (2 Replies)
Hello,
Could somebody please give me an awk example on how to read from the standard input.
It means as the "read" function in Korn shell.
Thx in advance ... (3 Replies)
Can I do something like,
if($0==/^int.*$/) {
print "Declaration"
}
for an input like: int a=5;
If the syntax is right, it is not working for me, but I am not sure about the syntax. Please help.
Thanks,
Prasanna (1 Reply)
This is one of the strangest things that's happening to me.
I'm writing a new Perl script that is trying to read a file.
The file is originally in .mof format, but I also saved the contents into a .txt file.
As a simple test, I wrote this:
#!/user/bin/perl -w
use strict;
... (3 Replies)
Hello,
I've been trying to come up with a solution for the following problem; I have an input file with two columns and I want to print as an output the first column without any changes but for the second column, I want to divide it by its last value. Example input:
1 9
2 10
3 11
4 12
5... (14 Replies)
I have a process that requires me to read data from huge log files and find the most recent entry on a per-user basis. The number of users may fluctuate wildly month to month, so I can't code for it with names or a set number of variables to capture the data, and the files are large so I don't... (7 Replies)
Discussion started by: rbatte1
7 Replies
LEARN ABOUT CENTOS
tk_setinternalborderex
Tk_GeometryRequest(3) Tk Library Procedures Tk_GeometryRequest(3)__________________________________________________________________________________________________________________________________________________NAME
Tk_GeometryRequest, Tk_SetMinimumRequestSize, Tk_SetInternalBorder, Tk_SetInternalBorderEx - specify desired geometry or internal border
for a window
SYNOPSIS
#include <tk.h>
Tk_GeometryRequest(tkwin, reqWidth, reqHeight)
Tk_SetMinimumRequestSize(tkwin, minWidth, minHeight)
Tk_SetInternalBorder(tkwin, width)
Tk_SetInternalBorderEx(tkwin, left, right, top, bottom)
ARGUMENTS
Tk_Window tkwin (in) Window for which geometry is being requested.
int reqWidth (in) Desired width for tkwin, in pixel units.
int reqHeight (in) Desired height for tkwin, in pixel units.
int minWidth (in) Desired minimum requested width for tkwin, in pixel units.
int minHeight (in) Desired minimum requested height for tkwin, in pixel units.
int width (in) Space to leave for internal border for tkwin, in pixel units.
int left (in) Space to leave for left side of internal border for tkwin, in pixel units.
int right (in) Space to leave for right side of internal border for tkwin, in pixel units.
int top (in) Space to leave for top side of internal border for tkwin, in pixel units.
int bottom (in) Space to leave for bottom side of internal border for tkwin, in pixel units.
_________________________________________________________________DESCRIPTION
Tk_GeometryRequest is called by widget code to indicate its preference for the dimensions of a particular window. The arguments to
Tk_GeometryRequest are made available to the geometry manager for the window, which then decides on the actual geometry for the window.
Although geometry managers generally try to satisfy requests made to Tk_GeometryRequest, there is no guarantee that this will always be
possible. Widget code should not assume that a geometry request will be satisfied until it receives a ConfigureNotify event indicating
that the geometry change has occurred. Widget code should never call procedures like Tk_ResizeWindow directly. Instead, it should invoke
Tk_GeometryRequest and leave the final geometry decisions to the geometry manager.
If tkwin is a top-level window, then the geometry information will be passed to the window manager using the standard ICCCM protocol.
Tk_SetInternalBorder is called by widget code to indicate that the widget has an internal border. This means that the widget draws a deco-
rative border inside the window instead of using the standard X borders, which are external to the window's area. For example, internal
borders are used to draw 3-D effects. Width specifies the width of the border in pixels. Geometry managers will use this information to
avoid placing any children of tkwin overlapping the outermost width pixels of tkwin's area.
Tk_SetInternalBorderEx works like Tk_SetInternalBorder but lets you specify different widths for different sides of the window.
Tk_SetMinimumRequestSize is called by widget code to indicate that a geometry manager should request at least this size for the widget.
This allows a widget to have some control over its size when a propagating geometry manager is used inside it.
The information specified in calls to Tk_GeometryRequest, Tk_SetMinimumRequestSize, Tk_SetInternalBorder and Tk_SetInternalBorderEx can be
retrieved using the macros Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_MinReqWidth, Tk_InternalBorderLeft, Tk_Internal-
BorderRight, Tk_InternalBorderTop and Tk_InternalBorderBottom. See the Tk_WindowId manual entry for details.
KEYWORDS
geometry, request
Tk 8.4 Tk_GeometryRequest(3)