08-23-2018
What in the solution proposed doesn't satisfy your request?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am having some trouble cut and paste a file based on the content of another file.
I have a file called draft. I need to cut and paste its content to another file based on the content of a file called proc.txt
The content of proc.txt is like the following:... (7 Replies)
Discussion started by: tiger99
7 Replies
2. Shell Programming and Scripting
Hi,
how can we search for a word (with case ignore )on specific line numbers
ex:
Awk /^regEX/ with condition on first line or second line
Awk/^ regex1/ on line 1
Awk /^regEX2/ on line 3
thanks in advance (4 Replies)
Discussion started by: rider29
4 Replies
3. Shell Programming and Scripting
Is there a way to grep only one line from a file listing name of files?
If I use head -1 it's ok(the first line only)
If I use head -2 it's not good because I have already checked the first line.
I'd like something like this:
while test $i -le $max
do
grep "$3" `head -$i temp.txt` >... (4 Replies)
Discussion started by: Max89
4 Replies
4. Shell Programming and Scripting
Hello!
I need to delete one line in a file which matches one very precise instance of a string only. When searching the forum I unfortunately only found a solution which would delete each line on which a particular string occurs.
Let's assume I have a file composed of thousands of lines... (4 Replies)
Discussion started by: Black Sun
4 Replies
5. Shell Programming and Scripting
Dear All
I want to search string "1000" from input file and if it found i want remove line that contain 1000 and also remove 3 line above it and 2 line below it.
INPUT FILE:
BHAT-D 2
aaa
ID CODE GS UPDATE MODE LANG MCO MCL NUMPAGES
50 ... (7 Replies)
Discussion started by: jaydeep_sadaria
7 Replies
6. Programming
I have a file on UNIX system from where I want to grep the list of all users associated to the particular repository.If the user's list is in single line then I fetch all list but if it is in two separate lines it doesn't.I use the below command
a=KESTREL-DEV;b=users;cat access_file|grep... (1 Reply)
Discussion started by: rohit22hamirpur
1 Replies
7. Shell Programming and Scripting
Hi,
1_strings file contains
$ cat 1_strings
/home/$USER/Src
/home/Valid
/home/Review$ cat myxml
<projected value="some string" path="/home/$USER/Src">
<input 1/>
<estimate value/>
<somestring/>
</projected>
<few more lines >
<projected value="some string" path="/home/$USER/check">... (4 Replies)
Discussion started by: greet_sed
4 Replies
8. Shell Programming and Scripting
Suppose i have the following data :
cat file.txt
12431,123334,55353,546646,14342234,4646,35234
123123,3535,123434,132535,1234134,13535,123534
123213,545465,23434,45646,2342345,4656,31243
2355425,2134324,53425,342,35235,23434,234535
3423424,234234,65465,,2344,35436,234524,234... (7 Replies)
Discussion started by: Ravi Tej
7 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I would like to comment a line that matched a string "sreenivas" in a file without opening it.
Thanks in advance.
Regards,
Sreenivas (3 Replies)
Discussion started by: raosr020
3 Replies
10. Shell Programming and Scripting
Hi guys,
I am running a while loop in a script ro read a file line by line.
Now I want to run a grep only on the lines below the line I am that is being read by the while loop.
Eg:
If my while loop is on line 4 of the file, the grep only runs below line 4 and does not include line 1,2... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
LEARN ABOUT HPUX
xtmakeresizerequest
XtMakeResizeRequest() XtMakeResizeRequest()
Name
XtMakeResizeRequest - request parent to change child's size.
Synopsis
XtGeometryResult XtMakeResizeRequest(w, width, height, width_return, height_return)
Widget w;
Dimension width, height;
Dimension *width_return, *height_return
Inputs
w Specifies the child widget making the request.
width, height
Specify the desired widget width and height.
Outputs
width_return, height_return
Return a compromise size when the function returns XtGeometryAlmost. May be NULL if the widget is not interested in compro-
mises.
Returns
A response to the request: XtGeometryYes, XtGeometryNo or XtGeometryAlmost.
Description
XtMakeResizeRequest() is a simplified version of XtMakeGeometryRequest() that a child can use to ask its parent to change its size. It
creates an XtWidgetGeometry structure, specifies width, and height, sets request_mode to (CWWidth CWHeight), and passes it to XtMakeGeome-
tryRequest(). Note that the geometry manager is free to modify any of the other window attributes (position or stacking order) to satisfy
the resize request.
The return values are as for XtMakeGeometryRequest(). If the return value is XtGeometryAlmost, width_return and height_return contain a
compromise width and height. If these are acceptable, the widget should immediately make another XtMakeResizeRequest() and request that
the compromise width and height be applied.
See XtMakeGeometryRequest() for more information.
Usage
XtMakeResizeRequest() should only be used in widget code by widgets which would like to change their own size. Applications that want to
set a widget size should use XtSetValues() on the XtNwidth and XtNheight resources of the widget. A widget that wants to change the size
of one of its children should use XtResizeWidget().
See Also
XtConfigureWidget(1), XtMakeGeometryRequest(1), XtMoveWidget(1), XtResizeWidget(1),
geometry_manager(4).
Xt - Geometry Management XtMakeResizeRequest()