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 have a file in which there are three fields
code:
919804199233 404911130003916 357266044991350F
and now i want to add two more fields i.e.
code:
919804199233 404911130003916 357266044991350F ms 123
how can i do it using command line
and if have a file of 100... (8 Replies)
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 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 ULTRIX
socket_from_name
socket_from_name(3ncs)socket_from_name(3ncs)Name
socket_from_name - convert a name and port number to a socket address
Syntax
#include <idl/c/socket.h>
void socket_$from_name(family, name, nlength, port, sockaddr, slength, status)
unsigned long family;
socket_$string_t name;
unsigned long nlength;
unsigned long port;
socket_$addr_t *sockaddr;
unsigned long *slength;
status_$t *status;
Arguments
family The integer representation of an address family. Value can be socket_$internet or socket_$unspec If the family parameter is
socket_$unspec, then the name parameter is scanned for a prefix of family: (for example, ip:).
name A string in the format family:host[port], where family:, host, and [port] are all optional. The family is an address family. The
only valid family is ip. If you specify a family as part of the name parameter, you must specify socket_$unspec in the family
parameter. The host is a host name. A leading number sign (#) can be used to indicate that the host name is in the standard
numeric form (for example, #192.9.8.7). If host is omitted, the local host name is used. The port is a port number. If you spec-
ify a port as part of the name parameter, the port parameter is ignored.
nlength
The length, in bytes, of name.
port A port number. If you specify a port number in the name parameter, this parameter is ignored.
sockaddr
A socket address.
slength
The length, in bytes, of sockaddr.
status The completion status. If the completion status returned in is equal to status_$ok , then the routine that supplied it was success-
ful.
Description
The routine converts a textual address family, host name, and port number to a socket address. The address family and the port number can
be either specified as separate parameters or included in the name parameter.
FilesSee Alsointro(3ncs), socket_family_from_name(3ncs), socket_to_name(3ncs)socket_from_name(3ncs)