Sponsored Content
Full Discussion: Find and add
Top Forums Shell Programming and Scripting Find and add Post 83626 by vino on Friday 16th of September 2005 11:15:25 AM
Old 09-16-2005
Moderators, this post is a continuation of sed help again's post #4.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

grep and sed to find a pattern and add newline

Hello All, I have log file the result from a multithreaded process. So when a process finishes it will write to this log file as 123 rows merged. The issue is sometimes the processess finish at the same time or write to the file at the same time as 123 rows merged.145 rows merged. At... (5 Replies)
Discussion started by: ssikhar
5 Replies

2. Shell Programming and Scripting

awk to find pattern and add lines

My file goes like this: SID_LIST_HOSTNAME_LISTENER_3 = (SID_LIST = (SID_DESC = (SID_NAME = ORA0008) (ORACLE_HOME = /opt/oracle/product/ORA0008) (ENVS = "LD_LIBRARY_PATH=/opt/oracle/product/ORA0008/lib") ) (SID_DESC = (SID_NAME = ORA0007) ... (4 Replies)
Discussion started by: jpsingh
4 Replies

3. Shell Programming and Scripting

[Solved] Find duplicate and add pattern in sed/awk

<Update> I have the solution: sed 's/\{3\}/&;&;---;4/' The thread can be marked as solved! </Update> Hi There, I'm working on a script processing some data from a website into cvs format. There is only one final problem left I can't find a solution. I've processed my file... (0 Replies)
Discussion started by: lolworlds
0 Replies

4. UNIX for Dummies Questions & Answers

Find and add a field for an input file

Hello Sir/Madam, I'm new to UNIX and wondering if I can process a find & add using AWK command in UNIX? requirements: I have to find *.JPG field for each line in the input file and add it as a separate field for each line.. for ex: 0000684631,E,3088017,7... (10 Replies)
Discussion started by: V1l1h1
10 Replies

5. Shell Programming and Scripting

Find String and add to next column

Dear All, I have file input input01.txt 14193 40 153 14208 40 168 14283 45 243 14298 40 258 14313 41 273 14328 44 288 ... ...input02.txt 499815.5 9886300.0 14208 94.2 1957.1 499815.5 9886300.0 14208 314.2 2101.0 ... (2 Replies)
Discussion started by: attila
2 Replies

6. Programming

Perl find text and add line

Hi All I need to add a line to a file but after a certain block of text is found The block of text looks like this <RDF:Description RDF:about="urn:mimetype:video/quicktime" NC:value="video/quicktime" and i need to add this in the next line down ( note there is... (4 Replies)
Discussion started by: ab52
4 Replies

7. Shell Programming and Scripting

Find column and add numbering

Hi Masters, Kindly need your help to format this data... IMPORT_HORIZON_HEADER 0 0 35 SURFACE_DATA_FORMAT XYZ- COLOR_FORMAT RGB SURFACE EB_S1_S2_Fault1 700 3 475370.187500 3672355.250000 1513.770386 475544.281250 3672530.250000 2255.540039 (4 Replies)
Discussion started by: ipatah
4 Replies

8. UNIX for Dummies Questions & Answers

Find match between two datasetsand add value

Dear all, could you help with following: i have two large datasets that contain two columns. dataset1: 752566 rs3094315 752721 rs3131972 753541 rs2073813 760300 rs11564776 768448 rs12562034 776546 rs12124819 dataset2: 55550 0.000000 82571 0.080572 88169 0.092229... (3 Replies)
Discussion started by: kush
3 Replies

9. Shell Programming and Scripting

Perl find and add to column

Hi, Could you help me with script in perl ;A1;AAA;%/A/B;70;75;-; ;A1;AAA;%/A/C;70;75;-; ;A1;BBB;%/A/G;70;75;-; ;A1;BBB;%/A;70;75;-;I would like to find line with '%/A' and put in that line in column 5 and 6 some other value ex: 90 and 99 example output: ;A1;AAA;%/A/B;70;75;-;... (5 Replies)
Discussion started by: vikus
5 Replies

10. Shell Programming and Scripting

sed and awk to find pattern and add priffix

Original File Server1|poweredOn|268401| Server1/Server1.vmx|Red Hat Enterprise Linux 5 (64-bit) Need Output Server1|poweredOn|DR|T1|268401| Server1/Server1.vmx|Red Hat Enterprise Linux 5 (64-bit) Conduction to check find the string "SFCHT1" and "SR" and add prefix has... (4 Replies)
Discussion started by: ranjancom2000
4 Replies
sconadm(1M)															       sconadm(1M)

NAME
sconadm - register system information SYNOPSIS
/usr/sbin/sconadm register -a [-e softwareUpdate | -E softwareUpdate] [-h portal_name] [-l logfile] [-N] [-p proxy_host[:proxy_port]] [-r registration_profile] [-s] [-u username] [-x proxy_username] /usr/sbin/sconadm proxy [-l logfile] [-p proxy_host[:proxy_port]] [-r registration_profile] [-x proxy_username] The sconadm utility is a command-line version of the Basic Registration GUI. In the first form of the command in the , sconadm uses the register subcommand to register a host with a registration server. In the second form, sconadm uses the proxy subcommand to configure all of the components for software update to use an HTTP web proxy. The parameters specified with -u, -e (or -E), -h, -p, and -x override values specified in your registration profile. A template for this profile, owned by root, with read-only permissions, is stored in /var/lib/breg/data/RegistrationProfile.properties. See registration_pro- file(4). For the proxy subcommand, the proxy password is stored in the RegistrationProfile.properties file, available if proxy authentication is needed. Storage in the profile prevents proxy passwords from being exposed as part of a listing of processes on a system. The following options are supported: -a Accept "Terms of Use and Binary Code License". Absence of this option means that you do not accept the license. -e softwareUpdate Enable client to be managed at the Sun-hosted Update Connection Service. -E softwareUpdate Disable client's ability to be managed at the Sun-hosted Update Connection Service. -h portal_name Hostname of portal (Portal Common Name). -l logfile Pathname of log file. -N Never register. -p proxy_host[:proxy_port] Proxy host name and optional proxy port number. -r registration_profile Pathname to a registration profile. -s Failsafe mode. The absence of this option specifies normal (non-failsafe) mode. -u username User name (a Sun Online Account). -x proxy_username User name on the proxy host. Unless specified otherwise, the commands below require root privileges or privileges equivalent to root. See privileges(5). Example 1: Registering a New System Assume a file registrationprofile.properties in /tmp that contains the following: userName=user123 password=abc123 hostName= subscriptionKey= portalEnabled=false proxyHostName= proxyPort= proxyUserName= proxyPassword= To register a new system using the profile above, you enter: /usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties Example 2: Reregistering a System with a Different User Assume a file registrationprofile.properties in /tmp with the contents shown below. Note the changed specification for userName and pass- word. userName=newuser password=newpassword hostName= subscriptionKey= portalEnabled=false proxyHostName= proxyPort= proxyUserName= proxyPassword= To reregister a new system using the profile above, you enter the same command you entered to register the system: /usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties Example 3: Reregistering a System, Adding a Sun Subscription Key Modify registrationprofile.properties as follows: userName=newuser password=newpassword hostName= subscriptionKey=abc12345678 portalEnabled=false proxyHostName= proxyPort= proxyUserName= proxyPassword= Run the command: /usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties Example 4: Reregistering and Enabling Access to all Update Connection Services Modify registrationprofile.properties as follows: userName=newuser password=newpassword hostName= subscriptionKey=abc12345678 portalEnabled=false proxyHostName= proxyPort= proxyUserName= proxyPassword= Note that portalEnabled is set to false. Run the command: /usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties -e softwareUpdate Example 5: Registering in Failsafe Mode Modify registrationprofile.properties as follows: userName=user123 password=test123 hostName= subscriptionKey= portalEnabled=false proxyHostName= proxyPort= proxyUserName= proxyPassword= Run the command: /usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties -s Example 6: Never Registering To never register a system, enter: /usr/sbin/sconadm register -N Example 7: Using a Proxy Server With Proxy Authentication Edit registrationprofile.properties as follows: userName= password= hostName= subscriptionKey= portalEnabled= proxyHostName=webcache.mycompany.com proxyPort=8080 proxyUserName=myCompanyProxyUserName proxyPassword=myCompanyProxyPassword Run the command: /usr/sbin/sconadm proxy -r /tmp/registrationprofile.properties Example 8: Changing Proxy Host Settings Edit registrationprofile.properties as follows: userName= password= hostName= subscriptionKey= portalEnabled= proxyHostName=webcache.mycompany.com proxyPort=8080 proxyUserName=myCompanyProxyUserName proxyPassword=myCompanyProxyPassword Run the command: /usr/sbin/sconadm proxy -r /tmp/registrationprofile.properties Then, change the proxyHostName value by running the following command: /usr/sbin/sconadm proxy -r /tmp/registrationprofile.properties -p newproxy.mycompany.com After the preceding command all proxies use newproxy.mycompany.com. Example 9: Resetting a System Not to Use a Proxy Edit registrationprofile.properties as follows: userName= password= hostName= subscriptionKey= portalEnabled= proxyHostName= proxyPort= proxyUserName= proxyPassword= Note that values for all proxy fields are null. Run the command: /usr/sbin/sconadm proxy -r /tmp/registrationprofile.properties 0 Success. >0 An error occurred. /var/lib/breg/data/RegistrationProfile.properties Registration profile template. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbreg | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ registration_profile(4), attributes(5), privileges(5) 20 Sep 2005 sconadm(1M)
All times are GMT -4. The time now is 02:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy