Hey guys. My goal here is to count the number of .dat files in in a directory(28 files). If 28 files exist I am ok. Having trouble doing this. Any help would b e greatly appreciated.
#!/usr/bin/ksh
#=============================================================================
### Define local... (3 Replies)
Hi Friends
Please help me out to count number of lines in binary file. It gives some wrong(less) using wc -l. Is there any other way to count lines of binary file.
Thanks. (3 Replies)
dear all,
i want to count the lines of a flat(text) file using awk.i have tried with {print NR}
but its taking lot of time for a big file like 2GB file size.
so i want better efficiency...so can any body please help me with some other and better awk code?
Regards,
Pankaj (15 Replies)
Hi,
Im doing a script to find the number of lines included inside a file newly. These lines are in between #ifdef FLAG1 and #else or #endif or #else and #endif.
I tried like this,
awk '/#ifdef Flag1/,/#e/{print}' aa.c | wc -l
awk '/#ifndef Flag1/,/#endif/{print}' aa.c | awk... (6 Replies)
Dear Members,
I want to count the number of lines in a file; for that i am using the following command :
FILE_LINE_COUNT=`wc -l $INT_IN/$RAW_FILE_NAME`
if i do an echo on FILE_LINE_COUNT then i get
241 /home/data/testfile.txt
I don't want the directory path to be displayed. Variable... (1 Reply)
Guys I am having a problem with being able to do a count of entries in a file. What I am trying to get a count of the total number of members that are listed in the files. So I need to pull the number of the lines after members. I tried using sed but it only seems to count the first... (7 Replies)
I have a file that I need to merge with another like file. Normally I remove the trailer reocrd and merge the file and update the trailer record of the second file. I did a WC -l on the first file before I removed the trailer record, and again afterwards. The count came back the same. I opened the... (6 Replies)
Hello,
Currently I have:
FILE=/home/file.txt
if ;
then
echo "File $FILE exists"
else
echo "File $FILE does not exist"
fi
exit
I would like to make it such that if the file *does* exist, it performs a wc -l count of the file and then if the count is greater than 3 performs... (3 Replies)
Hi All
I am checking for the presence of certain no of files in a directory. Only if the required no of files are present should I continue with my processing.
For e.g. in the temp directory below, there are 4 files of the format sample_aa(bb)(cc)(dd)_test. I need to check the count of these... (17 Replies)
Discussion started by: swasid
17 Replies
LEARN ABOUT CENTOS
ttk::label
ttk::label(n) Tk Themed Widget ttk::label(n)
__________________________________________________________________________________________________________________________________________________NAME
ttk::label - Display a text string and/or image
SYNOPSIS
ttk::label pathName ?options?
_________________________________________________________________DESCRIPTION
A ttk::label widget displays a textual label and/or image. The label may be linked to a Tcl variable to automatically change the displayed
text.
STANDARD OPTIONS -class-compound-cursor
-image-style-takefocus
-text-textvariable-underline
-width
See the ttk_widget manual entry for details on the standard options.
WIDGET-SPECIFIC OPTIONS
[-anchor anchor] Specifies how the information in the widget is positioned relative to the inner margins. Legal values are n, ne, e, se,
s, sw, w, nw, and center. See also -justify. [-background frameColor] The widget's background color. If unspecified, the theme default
is used. [-font font] Font to use for label text. [-foreground textColor] The widget's foreground color. If unspecified, the theme
default is used. [-justify justify] If there are multiple lines of text, specifies how the lines are laid out relative to one another.
One of left, center, or right. See also -anchor. [-padding padding] Specifies the amount of extra space to allocate for the widget. The
padding is a list of up to four length specifications left top right bottom. If fewer than four elements are specified, bottom defaults to
top, right defaults to left, and top defaults to left. [-relief relief] Specifies the 3-D effect desired for the widget border. Valid
values are flat, groove, raised, ridge, solid, and sunken. [-text text] Specifies a text string to be displayed inside the widget (unless
overridden by -textvariable). [-wraplength wrapLength] Specifies the maximum line length (in pixels). If this option is less than or
equal to zero, then automatic wrapping is not performed; otherwise the text is split into lines such that no line is longer than the speci-
fied value.
WIDGET COMMAND
Supports the standard widget commands configure, cget, identify, instate, and state; see ttk::widget(n).
SEE ALSO
ttk::widget(n), label(n)
Tk 8.5 ttk::label(n)