Hi Unix-Experts,
I have a textfile with several occurrences of some string XXX. I'd like to count all the occurrences and number them in reverse order.
E.g. input: XXX bla XXX foo XXX
output: 3 bla 2 foo 1
I tried to achieve this with sed, but failed. Any suggestions?
Thanks in... (4 Replies)
I need to search and count the occurrences of a pattern in a file. The catch here is it's a pattern and not a word ( not necessarily delimited by spaces). For eg. if ABCD is the pattern I need to search and count, it can come in all flavors like (ABCD, ABCD), XYZ.ABCD=100, XYZ.ABCD>=500,... (6 Replies)
I am a newbie in UNIX shell script and seeking help on this UNIX function. Please give me a hand. Thanks.
I have a large file. Named as 'MyFile'. It was tab-delmited. I am told to write a shell function that counts the number of occurrences of the ord “mysring” in the file 'MyFile'. (1 Reply)
Hi,
I have a file (movies.sh), this file contains list of movies such as
I want to redirect the movies from movies.sh to file_to_process to allow me process the file with out losing anything.
I have tried
Movies.sh >> file_to_process
But I want to add the row number to the data... (2 Replies)
Hello,
I have an output from GDB with many entries that looks like this
0x00007ffff7dece94 39 in dl-fini.c
0x00007ffff7dece97 39 in dl-fini.c
0x00007ffff7ab356c 50 in exit.c
0x00007ffff7aed9db in _IO_cleanup () at genops.c:1022
115 in dl-fini.c
0x00007ffff7decf7b in _dl_sort_fini (l=0x0,... (6 Replies)
I am trying to count the occurrences of ALL words in a file. However, I want to exclude certain words: short words (i.e. <3 chars), and words contained in an blacklist file. There is also a desire to count words that are capitalized (e.g. proper names). I am not 100% sure where the line on... (5 Replies)
Hi,
I need help to count the number of occurrences in $3 of file1.txt. I only know how to count by checking one by one and the code is like this:
awk '$3 ~ /aku hanya poyo/ {++c} END {print c}' FS="\t" file1.txt
But this is not wise to do as i have hundreds of different occurrences in that... (10 Replies)
Hi Gurus,
I'm scratching my head over and over and couldn't find the the right way to compose this AWK properly - PLEASE HELP :confused:
Input:
c,d,e,CLICK
a,b,c,CLICK
a,b,c,CONV
c,d,e,CLICK
a,b,c,CLICK
a,b,c,CLICK
a,b,c,CONV
b,c,d,CLICK
c,d,e,CLICK
c,d,e,CLICK
b,c,d,CONV... (6 Replies)
Hello Friends,
Can somebody assist an issue I am having? I have a separate file with a list of account ids
XXX200B02Y01
XXX200B03Y01
XXX200B05Y01
XXX200B07Y01
XXX200B08Y01
I call the file, and run an egrep against a directory and logfiles
AccountID=$(cat... (2 Replies)
Discussion started by: liketheshell
2 Replies
LEARN ABOUT ULTRIX
dwtscrollwindowsetareas
DwtScrollWindowSetAreas(3Dwt)DwtScrollWindowSetAreas(3Dwt)Name
DwtScrollWindowSetAreas - Sets up or adds the window region, and the horizontal or vertical scroll bar widgets to the scroll window widget.
Syntax
void DwtScrollWindowSetAreas(widget, horizontal_scroll_bar, vertical_scroll_bar, work_region)
Widget widget;
Widget horizontal_scroll_bar;
Widget vertical_scroll_bar;
Widget work_region;
Arguments
widget Specifies the scroll window widget ID.
horizontal_scroll_bar
Specifies the scroll bar widget ID for the horizontal scroll bar to be associated with the scroll window widget. You can set or
specify this ID only after creating an instance of the main window widget. The attribute name associated with this argument is
DwtNhorizontalScrollBar.
vertical_scroll_bar
Specifies the scroll bar widget ID for the vertical scroll bar to be associated with the scroll window widget. You can set or
specify this ID only after creating an instance of the main window widget. The attribute name associated with this argument is
DwtNverticalScrollBar.
work_region
Specifies the widget ID for the window to be associated with the scroll window work area. You can set or specify this ID only
after you create an instance of the main window widget.
Description
The DwtScrollWindowSetAreas function adds or changes a window work region and a horizontal or vertical scroll bar widget to the scroll win-
dow widget for the application. You must call this function before the scroll window widget is realized, that is, before calling the X
intrinsics function XtRealizeWidget. Each widget is optional and may be passed as NULL.
See AlsoDwtScrollWindow(3Dwt), DwtWindow(3Dwt),
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtScrollWindowSetAreas(3Dwt)