Hi, I want to develop a script to replace missing folders from home directories. These may have been deleted by the user. A standard home directory will have these folders in it and nothing else:
Desktop, Documents, Downloads, Library, Movies, Music, Pictures, Public, Sites
I also want to... (3 Replies)
I have file which as 12 columns and values like this
1,2,3,4,5
a,b,c,d,e
b,c,a,e,f
a,b,e,a,h
if you see the first column has duplicate values, I need to identify (print it to console) the duplicate value (which is 'a') and also remove duplicate values like below. I could be in two... (5 Replies)
Hi,
I've got a file with 3 columns which ends like this:
...
1234 345 1400
5287 733 1400
8472 874 1400
9317 726 1400
I want to replace the last row of the last column with the value 0. So my new file will end:
...
1234 345 1400
5287 733 1400
8472 874 1400
9317 726 ... (5 Replies)
Dear users,
I have this problem, this is the example:
123 (tab) A (tab) B (tab) C (tab) 456
where the (tab) is actually the \t delimiter. I need to replace the A B and C for D E and F, this is:
123 (tab) D (tab) E (tab) F (tab) 456
The thing is that my file is quite long and this... (2 Replies)
Hi,
I need to replace first row to second row:
Input:
A
JACK WAS_${HH}_JACK ....
Output should be:
JACK WAS_A_JACK ....
I tried below code..
awk '{TEMP= (NR==1)}; {sub(/${HH}/$TEMP/)}' (2 Replies)
I have this file
5
9
7
23
0
5
7
78
0
3
7
0
5
44
9
0
i want to remove the row with zero value but i want to replace it with the above + under over 2 like this (the second zero) (78+3)/2 (5 Replies)
Dear all,
I am kindly seeking assistance on the following issue.
I am working with data that is sampled every 0.05 hours (that is 3 minutes intervals) here is a sample data from the file
5.00000 15.5030
5.05000 15.6680
5.10000 16.0100
5.15000 16.3450
5.20000 16.7120
5.25000... (4 Replies)
HI Guys,
I just want to replace data for First Column and Row Cell(1,1)
Input :-
Hello A B C
X 1 2 3
Y 4 5 6
Z 7 8 9
Output:-
Byee A B C
X 1 2 3
Y 4 5 6
Z 7 8 9
From Hello to Byee .....And The Each file have Different String. (3 Replies)
HI Guys,
I have Below Input :-
RepigA_hteis522 ReptCfiEtrBsCll_aofe
MSL04_MSL2_A25_1A 0 9
MSL04_MSL2_A25_1B 0 9
MSL04_MSL2_A25_1C 0 9
RepigA ReptCfiEtrBsCll
hteis522 aofe
MSL04_MSL2_A25_1A 0 9
MSL04_MSL2_A25_1B 0 9
MSL04_MSL2_A25_1C 0 9
Split Data in two first row... (2 Replies)
Discussion started by: pareshkp
2 Replies
LEARN ABOUT SUNOS
wsreg_set_parent
wsreg_set_parent(3WSREG) Product Install Registry Library Functions wsreg_set_parent(3WSREG)NAME
wsreg_set_parent, wsreg_get_parent - set or get the parent of a component
SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...]
#include <wsreg.h>
void wsreg_set_parent(Wsreg_component *comp, const Wsreg_component *parent);
Wsreg_component *wsreg_get_parent(const Wsreg_component *comp);
DESCRIPTION
The wsreg_set_parent() function sets the parent specified by parent of the component specified by comp.
The wsreg_get_parent() function gets the parent of the component specified by comp.
RETURN VALUES
The wsreg_get_parent() function returns a pointer to a Wsreg_component structure that represents the parent of the specified component. If
the specified component does not have a parent, NULL is returned. If a non-null value is returned, it the caller's responsibility to
release the memory associated with the resulting Wsreg_component pointer with a call to wsreg_free_component(). See wsreg_create_compo-
nent(3WSREG).
USAGE
The parent of a component is set as a result of registering the parent component. When a component that has children is registered, all of
the child components are updated to reflect the newly registered component as their parent. This update only occurs if the child component
does not already have a parent component set.
The specified parent component is reduced to a lightweight component reference that uniquely identifies the parent in the product install
registry. This lightweight reference includes the parent's uuid and instance number.
The parent must be registered before a call to wsreg_set_parent() can be made, since the parent's instance number must be known at the time
the wsreg_set_parent() function is called.
A process needing to call wsreg_set_parent() or wsreg_get_parent() must have read access to the product install registry.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO wsreg_can_access_registry(3WSREG), wsreg_create_component(3WSREG), wsreg_initialize(3WSREG), wsreg_register(3WSREG),
wsreg_set_instance(3WSREG), attributes(5)SunOS 5.10 22 Sep 2000 wsreg_set_parent(3WSREG)