Hi All,
Need to convert file names to upper case using tr command in Unix.
In a folder -> /apps/dd01/misc
there are two files like:
pi-abcd567sd.pdf
pi-efgh1.pdf
The output of should be like:
pi-ABCD567SD.pdf
pi-EFGH1.pdf
I have used the command to work as below:
for f... (3 Replies)
Guys,
can you help me in doing cut first 21 and 32-35 characters from file.
I tried with cut -c to cut first 21 characters ,It is succeeded.
But i need both first 21 and 32-35. (1 Reply)
Hi Gurus,
I am trying to execute the below command. However the output shows the value + path of the folder where the command is being executed. But I am only interested in the value but not the path.
du -hs /aps/inf/SeLogs
when I execute the above command, output is
32G... (5 Replies)
I need to cut the last seven characters of a variable length variable. The variable may be 7 characters or 70. I need to always be able to grab the last 7 characters. I looked at the cut command but it always seems to want to start at the beginning of a line, not the end and count backwards.
... (5 Replies)
Hi,
I would like to cut last 13 characters of a file name and take the rename the file name as follows:
Input:
A.DAT20110517033732
Output:
A.DAT
I have tried the following command and cut last 13 characters.
echo A.DAT20110517033732 | awk '{print substr($0, length($0)-13)}'
... (3 Replies)
Hi Everyone,
i have a file 1.txt
<a><a"" dd>aaaaauweopriuew</f><">!(^)!</aa></ff>
<a><a"" dd>bbbbbuweopriuew</f><">!(^*)!</aa></ff>
i know i can use
perl -p -i -e "s/>aaaaa/aa/g" 1.txt
perl -p -i -e "s/>bbbbb/bb/g" 1.txt
to acheive only keep the first two characters of the five characters,... (4 Replies)
i have following fixed width text(also has a delimiter)
id;name;age;comments1;comments2;title;date
to get output as
id;name;age;;;title;date (remove comments but keep the delimiter in between)
i use cut -c1-12,22,32-
suppose if i want to insert another ; somewhere like ... (3 Replies)
helloo
I wonder if there's a way to cut characters out of a string and keep only
the last 2 by using sed.
For example if there's the todays' date:
2012-05-06
and we only want to keep the last 2 characters which are the day.
Is there a quick way to do it with sed? (2 Replies)
Hello All
I have a file like this
abc.tpt.ctl
bdc.tpt.ctl
cdw.tpt.ctl
I have looped every line using the for Loop, now I want to take each line and cut the .tpt.ctl part of it and store it in a variable and use the variable in same loop.
The part I am stuck at is how do I cut the last... (9 Replies)
Discussion started by: nnani
9 Replies
LEARN ABOUT SUSE
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)