Sponsored Content
Top Forums UNIX for Dummies Questions & Answers about registry and sed command Post 50795 by djeung on Sunday 2nd of May 2004 08:29:55 PM
Old 05-02-2004
i tried man sed, but i work better with visual examples, and the registry i'm guessing well here's an example:

sed '1,$s/\(.*\)\t\(.*\)/\2 \1/' file
_________^______^
________reg 1____reg 2
____________________flip flop reg 1 & 2

that what i got for an example but I'm still not understanding the purpose of the registry.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to change the MTU in Unix registry?

Does anyone know how to or know of a web page where I can find how to change the MTU speed in Unix registry? Any info. would be greatly appreciated. Thanks, Techie (2 Replies)
Discussion started by: Techie_girl
2 Replies

2. UNIX for Dummies Questions & Answers

Comparable registry file in UNIX

Hi all, I am totally new to UNIX. I am currently using converting an existing software package from MFC C++ to wxwindow which allows the software to run under Windows and UNIX. My problem is my existing software package writes to and from the registry. How is this accomplished in UNIX? ... (2 Replies)
Discussion started by: DavidCountry
2 Replies

3. Solaris

Registry analogous in Solaris

Hi, May seem to be an absurd question, still. As we have registry in Windows which keeps track of what is installed and where, what is its analogous thing in Solaris. Is this same in all Unix flavours or different. (4 Replies)
Discussion started by: vibhor_agarwali
4 Replies

4. UNIX for Dummies Questions & Answers

Registry

what Unix systems have for registry? windows have registry. Unix have ??? (1 Reply)
Discussion started by: cs05pp2
1 Replies

5. AIX

How to see a Registry on AIX??

Hi Folks, Could you please help me with the command to find the Registry on AIX machine? For ex in windows we can see a products registry using the REGEDIT....In similar do we have any command for AIX? (1 Reply)
Discussion started by: nvindraneel
1 Replies

6. Shell Programming and Scripting

Loop with sed command to replace line with sed command in it

Okay, title is kind of confusion, but basically, I have a lot of scripts on a server that I need to replace a ps command, however, the new ps command I'm trying to replace the current one with pipes to sed at one point. So now I am attempting to create another script that replaces that line. ... (1 Reply)
Discussion started by: cbo0485
1 Replies

7. UNIX for Advanced & Expert Users

Read/update windows registry using UNIX script

Hi, I have a requirement where in to read the registry value of a windows NT based system from a AIX server which should be automatic. For eg. the script should connect to the Win NT system, read the registry as specified on the input and display the output on the AIX screen? Eg. <script... (3 Replies)
Discussion started by: sathish57
3 Replies

8. Shell Programming and Scripting

Why execution is different from orginal bash registry$database?

Hi all, here's my script #!/bin/ksh if then export DB_CREATE_PATH=`pwd` fi echo echo "********************--Menu--*****************************" echo "*** " echo "*** 1. Pre-Upgrade Steps "... (3 Replies)
Discussion started by: jediwannabe
3 Replies

9. Shell Programming and Scripting

how to get the value of a registry using csh script.

hi, how to get the value of a registry using csh script. thanks. (1 Reply)
Discussion started by: Rashid Khan
1 Replies
wsreg_initialize(3WSREG)			    Product Install Registry Library Functions				  wsreg_initialize(3WSREG)

NAME
wsreg_initialize - initialize wsreg library SYNOPSIS
cc [flag ...] file ...-lwsreg [library ...] #include <wsreg.h> int wsreg_initialize(Wsreg_init_level level, const char *alternate_root); DESCRIPTION
The wsreg_initialize() function initializes the wsreg library. The level argument can be one of the following: WSREG_INIT_NORMAL If an old registry file is present, attempt to perform a conversion. WSREG_INIT_NO_CONVERSION If an old conversion file is present, do not perform the conversion, but indicate that the conversion is recommended. The alternate_root argument can be used to specify a root prefix. If NULL is specified, no root prefix is used. RETURN VALUES
The wsreg_initialize() function can return one of the following: WSREG_SUCCESS The initialization was successful and no registry conversion is necessary. WSREG_CONVERSION_RECOMMENDED An old registry file exists and should be converted. A conversion is attempted if the init_level argument is WSREG_INIT_NORMAL and a registry file from a previous version of the product install registry exists. If the wsreg_initialize() function returns WSREG_CONVERSION_RECOMMENDED, the user either does not have permission to update the product install registry or does not have read/write access to the previous registry file. USAGE
The wsreg_initialize() function must be called before any other wsreg library functions. The registry conversion can take some time to complete. The registry conversion can also be performed using the graphical registry viewer /usr/bin/prodreg or by the registry converter /usr/bin/regconvert. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
prodreg(1M), wsreg_can_access_registry(3WSREG), attributes(5) SunOS 5.10 22 Sep 2000 wsreg_initialize(3WSREG)
All times are GMT -4. The time now is 02:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy