Hi all,
I have a logfile which has lines as following:
DOMAIN\username,Deposit,DOMAIN\ServiceAccountName,25/03/2010,00:10,\\SERVER,,,,/Ts=4BAA9BD6,,,10.00,10.03
It's a log of a pcounter print charge system.
I need to only have the first part (domain\username) and the second last... (4 Replies)
Hi Everyone,
1.txt
test here (888_f)a/fff (eeee) test2 (q)--(qq)
the output is
test here a/fff test2 --
means remove the characters in between (), and () itself. Please advice.
Thanks (3 Replies)
Hi everyone,
suppose that I have the following line:
#test your knowledge
can I use AWK to print the word "test" only? without the #?
what should I change to this:
awk '{print $1}'
thanks in advance guys (2 Replies)
I have the following code for removing duplicate records based on fields in inputfile file & moves the duplicate records in duplicates file(1st Awk) & in 2nd awk i fetch the non duplicate entries in inputfile to tmp file and use move to update the original file.
Requirement:
Can both the awk... (4 Replies)
Hi All,
I have searched many threads for possible close solution. But I was unable to get simlar scenario.
I would like to print all duplicate based on 3rd column except the first occurance. Also would like to print if it is single entry(non-duplicate).
i/P file
12 NIL ABD LON
11 NIL ABC... (6 Replies)
I would like to remove lines with certain pattern but only Estimate: and Realised: in USD and Date: shall be output. The order of the currency are mixed.
Output
I failed on awk with sub, gensub and was not able to remove the multiple entry on the * Date: (2 Replies)
Hi Everybody:
I need your help, please...
I have this file *.txt
0000 | 16010201 22000000 67892000 00000000 00000000 00000100 72246681 28E08236
| ~~~~"~~~g~ ~~~~~~~~~~~~~r$f~(~~6 |
0020 | 10476173 90010100 10000000 00000001 05000226 17163011 12442212 48140484
|... (2 Replies)
Discussion started by: solaris21
2 Replies
LEARN ABOUT ULTRIX
dwtmainsetareas
DwtMainSetAreas(3Dwt)DwtMainSetAreas(3Dwt)Name
DwtMainSetAreas - Sets up or adds the menu bar, command window, work window, and scroll bar widgets to the main window widget of the appli-
cation.
Syntax
void DwtMainSetAreas(widget, menu_bar, work_window,
command_window, horizontal_scroll_bar,
vertical_scroll_bar)
Widget widget;
Widget menu_bar;
Widget work_window, command_window;
Widget horizontal_scroll_bar, vertical_scroll_bar;
Arguments
widget Specifies the main window widget ID.
menu_bar Specifies the widget ID for the menu bar to be associated with the main window widget. You can set this ID only after creating
an instance of the main window widget. The attribute name associated with this argument is DwtNmenuBar.
work_window
Specifies the widget ID for the work window to be associated with the main window widget. You can set this ID only after creat-
ing an instance of the main window widget. The attribute name associated with this argument is DwtNworkWindow.
command_window
Specifies the widget ID for the command window to be associated with the main window widget. You can set this ID only after cre-
ating an instance of the main window widget. The attribute name associated with this argument is DwtNcommandWindow.
horizontal_scroll_bar
Specifies the scroll bar widget ID for the horizontal scroll bar to be associated with the main window widget. You can set this
ID only after creating an instance of the main window widget. The attribute name associated with this argument is DwtNhorizon-
talScrollBar.
vertical_scroll_bar
Specifies the scroll bar widget ID for the vertical scroll bar to be associated with the main window widget. You can set this ID
only after creating an instance of the main window widget. The attribute name associated with this argument is DwtNverti-
calScrollBar.
Description
The DwtMainSetAreas function sets up or adds the menu bar, work window, command window, and scroll bar widgets to the application's main
window widget. You must set these areas up before the main window widget is realized, that is, before calling the X intrinsics function
XtRealizeWidget.
Each area is optional; therefore, you can pass NULL to one or more of these arguments. The title bar is provided by the window manager.
See Also
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtMainSetAreas(3Dwt)