I am a FORTRAN guy and not a UNIX expert by any means so sorry if this sounds dumb, but all I want to do is have a UNIX script which reads data from a file (say 1000 lines worth, each row is a file name) and store it in an array to perform an operation on later. As maddeningly simple as this... (2 Replies)
Hi,
I have a data file formatted like this:
Ex:
Mike 3434
Jack 481
Peter 12
Alan 926
I want to get this data into 2 variables: "Names" and "Numbers" that I can using one "for" loop to get the value as Names and Numbers
Like this:
for i in 0 1 2 3
do
echo $Names
echo... (12 Replies)
This is shell programming assignment.
It needs to create a file called .std_dbrc contains
STD_DBROOT=${HOME}/class/2031/Assgn3/STD_DB
(which includes all my simple database files)
and I am gonna use this .std_dbrc in my script file (read the data from the database files)
like this: .... (3 Replies)
I have 3 columns in an excel sheet.
c1 c2 c3
EIP_ACCOUNT SMALL_TS_01 select A.* from acc;
All the above 3 col shoud be passed a variable in the unix code.
1.How to read an excel file
2.How to pass these data as variable to the unic script (1 Reply)
Hi Frnds...
I have an input file name.txt and another file named as source.. name.txt is having only one column and source is having around 25 columns...i need to read from name.txt line by line and search it in source file and then save the result in results file..
I have a rough idea about the... (15 Replies)
In the hello.htm have the sentenses:
Hello $name
How are you?
The perl script:
$name = "David";
open(HEADER,"hello.htm");
while(<HEADER>) { $html .= $_; }
close(HEADER);
print "$html";I making something about template. But it can't process the $name variable. (4 Replies)
I need to read a text file that contain columns of data, i need to read 1st column as a function to call, and others are the data i need to get into a ksh script.
I am quite new to ksh scripting, i am not very sure how to read each row line by line and the data in each columns of that line, set... (3 Replies)
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Hi Team,
in /tmp folder i have thousands of log files i want to read each file and grep a value called "Calling This".
Each logfile name is different but it ends with .log.
How can i achieve this?
Please excuse if i did any mistake by not following forum standards. I will surely follow... (10 Replies)
We have the data looks like below in a log file.
I want to generat files based on the string between two hash(#) symbol like below
Source:
#ext1#test1.tale2 drop
#ext1#test11.tale21 drop
#ext1#test123.tale21 drop
#ext2#test1.tale21 drop
#ext2#test12.tale21 drop
#ext3#test11.tale21 drop... (5 Replies)
Discussion started by: Sanjeev G
5 Replies
LEARN ABOUT SUNOS
wsreg_get_compatible_versions
wsreg_add_compatible_version(3WSREG) Product Install Registry Library Functions wsreg_add_compatible_version(3WSREG)NAME
wsreg_add_compatible_version, wsreg_remove_compatible_version, wsreg_get_compatible_versions - add or remove a backward-compatible version
SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...]
#include <wsreg.h>
int wsreg_add_compatible_version(Wsreg_component *comp, const char *version);
int wsreg_remove_compatible_version(Wsreg_component *comp, const char *version);
char **wsreg_get_compatible_versions(const Wsreg_component *comp);
DESCRIPTION
The wsreg_add_compatible_version() function adds the version string specified by version to the list of backward-compatible versions con-
tained in the component specified by comp.
The wsreg_remove_compatible_version() function removes the version string specified by version from the list of backward-compatible ver-
sions contained in the component specified by comp.
The wsreg_get_compatible_versions() function returns the list of backward-compatible versions contained in the component specified by comp.
RETURN VALUES
The wsreg_add_compatible_version() function returns a non-zero value if the specified backward-compatible version was successfully added;
otherwise, 0 is returned.
The wsreg_remove_compatible_version() function returns a non-zero value if the specified backward-compatible version was successfully
removed; otherwise, 0 is returned.
The wsreg_get_compatible_versions() function returns a null-terminated array of char pointers that represents the specified component's
list of backward-compatible versions. If the specified component has no such versions, NULL is returned. The resulting array and its con-
tents must be released by the caller.
USAGE
The list of backward compatible versions is used to allow components that are used by multiple products to upgrade successfully without
compromising any of its dependent products. The installer that installs such an update can check the list of backward-compatible versions
and look at what versions are required by all of the dependent components to ensure that the upgrade will not result in a broken product.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO prodreg(1M), wsreg_initialize(3WSREG), wsreg_register(3WSREG), wsreg_set_version(3WSREG), attributes(5)SunOS 5.10 22 Sep 2000 wsreg_add_compatible_version(3WSREG)