Guys,
I am beginer in unix. There is a cobol file with fixed-width. I want to read the total Line, Word and character count. I have tried with wc-l unix command, but it returns '0'.
Please advice me the correct command/steps to get the record count.
Thanks in advance. (4 Replies)
Hi
I want to make a script . In this script i want to use input file and this input file consist of three numbers in a line
for example input file is as below:
919876543210 09876543234567876 98764534245678 aircelmms","aircelweb","aircelwap"
096574235625... (2 Replies)
Hi
i am using expect module and trying to login using following code.
ssh 127.0.0.1
expect "word:"
send "$password \n"
kindly let me know the login script using expect module (1 Reply)
Hi
I am automating my few commands out of which one command is
tail -f running.logs
when i run this command it does not automatically exit and show prompt (#)
what would i do so that it will exit out automatically after few seconds and move to the next command without using
... (4 Replies)
HI
I am trying to check the status of port using command
/code:
netstat -an | grep port
/Output:
*.2009 *.* 0 0 65535 0 LISTEN
what i am trying to do is
i want to grep only status Wether the port is established/listen if so show ok else... (1 Reply)
hi all,
when i tried executing the script by giving following command
$ sh test.sh <parameter>
it shows the following output:
<none>
status code=0
Previously it was working fine.But now its showing this output. (1 Reply)
Hi,
I have been trying to run a simple script
CONFIG_FILE="/jay/check"
.
.
.
for i in `cat $CONFIG_FILE`
do
loc=`echo $i | cut -d "|" -f2`
var=$(find $loc -mtime -1|wc -l)
if then
echo $loc has files older than 1 day
fi
done
.
.
. (2 Replies)
How to search a pattern from multiple files...
i used the command suppose the pattern name is xxx
grep xxx (file1-o- file2-o- file3)
Thanks in advance (4 Replies)
I am trying to explore HERE Document in UNIX.
Here is the sample script that i am trying to execute:
#!/bin/sh
filename=sample.txt
vi $filename <<EOF
i
This file was created automatically from
a shell script.
^
Here is the error i received when i execute above script:
Vim: Warning: Input... (3 Replies)
Discussion started by: satty007
3 Replies
LEARN ABOUT X11R4
xtallocategc
XtAllocateGC(3) XT FUNCTIONS XtAllocateGC(3)NAME
XtAllocateGC - obtain a sharable GC with modifiable fields
SYNTAX
GC XtAllocateGC(Widget w, Cardinal depth, XtGCMask value_mask, XGCValues *values, XtGCMask dynamic_mask, XtGCMask unused_mask);
ARGUMENTS
values Specifies the actual values for this GC.
value_mask
Specifies which fields of the values are specified.
w Specifies the widget.
depth Specifies the depth for which the returned GC is valid, or 0.
dynamic_mask
Specifies the fields of the GC that will be modified by the caller.
unused_mask
Specifies the fields of the GC that will not be needed by the caller.
DESCRIPTION
The XtAllocateGC function returns a sharable GC that may be modified by the client. The screen field of the specified widget or of the
nearest widget ancestor of the specified object and the specified depth argument supply the root and drawable depths for which the GC is to
be valid. If depth is zero the depth is taken from the depth field of the specified widget or of the nearest widget ancestor of the speci-
fied object.
The value_mask argument specifies the fields of the GC that will be initialized with the respective members of the values structure. The
dynamic_mask argument specifies fields that the caller intends to modify during program execution. The caller must ensure that the corre-
sponding GC field is set prior to each use of the GC. The unused_mask argument specifies fields of the GC that are of no interest to the
caller. The caller may make no assumptions about the contents of any fields specified in unused_mask. The caller may assume that at all
times all fields not specified in either dynamic_mask or unused_mask have their default value if not specified in value_mask or the value
specified by values. If a field is specified in both value_mask and dynamic_mask, the effect is as if it were specified only in
dynamic_mask and then immediately set to the value in values. If a field is set in unused_mask and also in either value_mask or
dynamic_mask, the specification in unused_mask is ignored.
XtAllocateGC tries to minimize the number of unique GCs created by comparing the arguments with those of previous calls and returning an
existing GC when there are no conflicts. XtAllocateGC may modify and return an existing GC if it was allocated with a nonzero unused_mask.
SEE ALSO
XtGetGC
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 libXt 1.0.5 XtAllocateGC(3)