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_get_type
wsreg_set_type(3WSREG) Product Install Registry Library Functions wsreg_set_type(3WSREG)NAME
wsreg_set_type, wsreg_get_type - set or get the type of a component
SYNOPSIS
cc [ flag... ] file ... -lwsreg [ library ... ]
#include <wsreg.h>
int wsreg_set_type(Wsreg_component *comp, Wsreg_component_type type);
Wsreg_component_type wsreg_get_type(const Wsreg_component *comp);
DESCRIPTION
The wsreg_set_type() function sets the type specified by type in the component specified by comp.
The wsreg_get_type() function retrieves the type from the component specified by comp.
RETURN VALUES
The wsreg_set_type() function returns a non-zero value if the type is set successfully; otherwise 0 is returned.
The wsreg_get_type() function returns the type currently set in the component specified by comp.
USAGE
The component type is used to indicate whether a Wsreg_component structure represents a product, feature, or component. The type argument
can be one of the following:
WSREG_PRODUCT Indicates the Wsreg_component represents a product. A product is a collection of features and/or components.
WSREG_FEATURE Indicates the Wsreg_component represents a feature. A feature is a collection of components.
WSREG_COMPONENT Indicates the Wsreg_component represents a component. A component is a collection of files that may be installed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO wsreg_create_component(3WSREG), wsreg_initialize(3WSREG), wsreg_register(3WSREG), wsreg_set_instance(3WSREG), attributes(5)SunOS 5.10 22 Sep 2000 wsreg_set_type(3WSREG)