Is there a command that sets a variable length?
I have a input of a variable length field but my output for that field needs to be set to 32 char.
Is there such a command?
I am on a sun box running ksh
Thanks (2 Replies)
-rw-r--r-- 1 fxpbftp fusion 368 Jun 10 08:34 FX_1.11840235236594E12.111234236809956
If I have a long list of files that look like this (they al begni with FX_1.#######.####) Sometimes, there may be less numbers or more in the filename, that varies.
I wish to isolate just the... (8 Replies)
Greetings,
I need to take a fixed length file, similar to the following:
<input file>
1233 e 612 i
43378 f 03 x
22 17 e 9899
a 323e a6 z7
read in the character in position 6, and if that character = e, delete that line from the file.
<output file>
43378 f 03 x
22 17 e 9899
... (4 Replies)
Newbie
Looking for a script to convert my input file to delimited text file. Not familier with AWK or shell programing. Below is sample record in my input file and the expected output format. My OS is HPUX 11.23.
Thanks in advance for your assistance.
tbtbs
input file:... (12 Replies)
Hi, all.
I need to convert a file tab delimited/variable length file in AIX to a fixed lenght file delimited by spaces. This is the input file:
10200002<tab>US$ COM<tab>16/12/2008<tab>2,3775<tab>2,3783
19300978<tab>EURO<tab>16/12/2008<tab>3,28523<tab>3,28657
And this is the expected... (2 Replies)
Hello All,
I working on ksh. I am using fixed length file. My file is like:
========
IXTTIV110827 NANTH AM IKSHIT
ABCDEF 0617 IJAY NAND EENIG
ZXYWVU 0912 AP OOK OONG
PQRSTU100923 NASA DISH TTY
ASDFG 0223 GHU UMA LAM
QWERT 0111 ATHE SH THEW
=======
From 7th to 12 is a date... (4 Replies)
Hi,
I need to split a fixed length file of 160 characters based on value of a column. Example:
ABC 456780001 DGDG SDFSF
BCD 444440002 SSSS TTTTT
ABC 777750003 HHHH UUUUU
THH 888880001 FFFF LLLLLL
HHH 999990002 GGGG OOOOO
I need to split this file on basis of column from... (7 Replies)
I have a fixed width file of length 53. when is try to get the lengh of the record of that file i get 2 different answers.
awk '{print length;exit}' <File_name>
The above code gives me length 50.
wc -L <File_name>
The above code gives me length 53.
Please clarify on... (2 Replies)
Hi,
I have a DB2 UDB 9.7 SQL script, as follows:
I need to pass the script into Unix and generate a fixed length file from this.
Can someone kindly provide a script to achieve it?
SELECT
CAST(COALESCE(CL_ID,'000000000') AS CHAR(9)) AS CL_ID
,STATUS... (5 Replies)
Discussion started by: ebsus
5 Replies
LEARN ABOUT CENTOS
ttk_image
ttk_image(n) Tk Themed Widget ttk_image(n)
__________________________________________________________________________________________________________________________________________________NAME
ttk_image - Define an element based on an image
SYNOPSIS
ttk::style element create name image imageSpec ?options?
_________________________________________________________________DESCRIPTION
The image element factory creates a new element in the current theme whose visual appearance is determined by Tk images. imageSpec is a
list of one or more elements. The first element is the default image name. The rest of the list is a sequence of statespec / value pairs
specifying other images to use when the element is in a particular state or combination of states.
OPTIONS
Valid options are:
-border padding
padding is a list of up to four integers, specifying the left, top, right, and bottom borders, respectively. See IMAGE STRETCHING,
below.
-height height
Specifies a minimum height for the element. If less than zero, the base image's height is used as a default.
-padding padding
Specifies the element's interior padding. Defaults to -border if not specified.
-sticky spec
Specifies how the image is placed within the final parcel. spec contains zero or more characters "n", "s", "w", or "e".
-width width
Specifies a minimum width for the element. If less than zero, the base image's width is used as a default.
IMAGE STRETCHING
If the element's allocated parcel is larger than the image, the image will be placed in the parcel based on the -sticky option. If the
image needs to stretch horizontally (i.e., -sticky ew) or vertically (-sticky ns), subregions of the image are replicated to fill the par-
cel based on the -border option. The -border divides the image into 9 regions: four fixed corners, top and left edges (which may be tiled
horizontally), left and right edges (which may be tiled vertically), and the central area (which may be tiled in both directions).
EXAMPLE
set img1 [image create photo -file button.png]
set img2 [image create photo -file button-pressed.png]
set img3 [image create photo -file button-active.png]
style element create Button.button image
[list $img1 pressed $img2 active $img3]
-border {2 4} -sticky we
SEE ALSO
ttk::intro(n), ttk::style(n), ttk_vsapi(n), image(n), photo(n)
KEYWORDS
style, theme, appearance, pixmap theme, image
Tk 8.5 ttk_image(n)