In the above configuration.properties file i need to replace the line "identity_server_url" with env.txt file content. In configuration.properites file before '=' values are constant. After '=' values are changing. So i need to replace the line with matched string before '=' in configuration.properties with env.txt
i am very new to UNIX
plz help me in this scenario
i have two text files as below
file1.txt
name=Rajakumar.
Discipline=Electronics and communication.
Designation=software Engineer.
file2.txt
name=Kannan.
Discipline=Mechanical.
Designation=CADD Design Engineer.
... (6 Replies)
Hi,
I want to replace the srting '; with ABCD'; in a file from line 1 to line 65. Is there any single command to do it without using awk
Thanks for quick reply
https://www.unix.com/images/misc/progress.gif (3 Replies)
Hello all, the title makes this sound simple, and maybe it should be.
This is by code:
#!/bin/sh
cp ch25.txt ch25.fn.tex
n=`grep -c '^\' ch25_footnotes.txt > temp`
r=`awk -F] '{print $2}' temp`
`sed 's/\/\\footnote{$r}/' ch25.fn.tex`
done
This is what I am trying to... (6 Replies)
I have a file which contains several lines. Sample content of the file is as below.
OK testmessage email<test@123>
NOK receivemessage email<123@test>
NOK receivemessage email(123@test123)
NOK receivemessage email<abc@test>
i would like to know by scripting will... (10 Replies)
Can someone tell me how I can do this?
e.g:
Say file1.txt contains:
today is monday
the 22 of
NOVEMBER
2010
and file2.txt contains:
the
11th
month
of
How do i replace the word NOVEMBER with (5 Replies)
Hi
I am not the best scripter in the world and have run into a issue which you might be able to guide me on...
I have two files.
File1 :
A123, valueA, valueB
B234, valueA, valueB
C345, valueA, valueB
D456, valueA, valueB
E567, valueA, valueB
F678, valueA, valueB
File2:
C345,... (5 Replies)
I have a LOG file which looks like this
Import started at: Mon Jul 23 02:13:01 EDT 2012
Initialization completed in 2.146 seconds.
--------------------------------------------------------------------------------
--
Import summary for Import item: PolicyInformation... (8 Replies)
Hi,
I want to achieve something similar to what described in another post:
The difference is I want to add the line if the pattern is not found.
File 1:
A123, valueA, valueB
B234, valueA, valueB
C345, valueA, valueB
D456, valueA, valueB
E567, valueA, valueB
F678, valueA, valueB
... (11 Replies)
I don't know if it's been asked before but seems i gave up seeking.
i have 2 files :
file1.txt
Monday XXXX
Tuesday XXXX
XXXX Wednesday
Thursday XXXX
XXXX is in every lines of file1.txt and i want to replace them with each line in file2.txt:
home
school
cinema
so output file is:
... (19 Replies)
Hi Everyone,
I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file.
I am very new to unix. Kindly help... (10 Replies)
Discussion started by: Pradhikshan
10 Replies
LEARN ABOUT HPUX
slpd
slpd(1M)slpd(1M)NAME
slpd - Service Location Protocol (SLP) Daemon
SYNOPSIS
configuration_file] registration_file] log_file] pid_file]
DESCRIPTION
The daemon provides the functionality of the Directory Agent and Service Agent for the Service Location Protocol ("SLP") version 2. SLP
provides a scalable framework that allows the networking applications to discover the existence, location and configuration of networked
services in the enterprise networks.
provides the functionality of the following services:
This agent collects service advertisements from the service agents or applications providing the services and caches them in its memory.
The DA then provides this services information to the clients (user agents) trying to discover the service information. Directory agents
advertise their presence through directory agent advertisements.
This server registers the service information of all the services that are advertised by the corresponding service agents to this server.
It then answers the queries from the user agents about the information on the services that were registered with this server by the ser-
vices agents. It also forwards the registrations to any Directory Agents that may be present in its scope.
also provides a option whereby the existing services which are not slp enabled can advertise information by storing this information in a
static registration file. See below for the options. reads this file and provides the information to the user agents.
can be either started as an SA server or DA by setting to either false or true in the configuration file. In both the cases, runs as a
daemon listening for SLP requests. When is acting as a DA, it registers the services coming from within the host acting as a SA server and
acts as DA for the User Agents (UAs) running on the remote machines.
can be configured to provision services within a scope that is configured by the administrator by setting in the configuration file. SLP
daemon will answer to requests only if it falls within this scope. This feature of scoping of SLP daemon provides provisioning of services
in an Enterprise network based on administration needs, geographical needs or department needs and also provides scalability.
See RFC2608 for more information on the Service Location Protocol. Without any arguments, reads the default configuration file,
Options
The options are:
Specifies the configuration file to
The default configuration file is
Do not detach from the terminal.
Specifies the log file that receives
log messages. The default log file is
Specifies the file that holds the
process id. The default process id file is
Specifies the registration file to
for reading service information. The default registration file is
To restart the daemon, send it a signal.
To kill the daemon, send it a signal.
The command can also be used for sending signals to the server process (see the slpdc(1M) manpage).
DIAGNOSTICS
Any errors encountered by in the registration or configuration file or in normal operation are logged in the log file, which is the default
file. To change this log file, use the command.
AUTHOR
was developed by the Caldera Systems, Inc.
FILES
SLP configuration file
SLP registration file
File storing
process ID
Default SLP log file
SEE ALSO kill(1), slpdc(1M), signal(2), libslp(3N), slp.conf(4), slp.reg(4).
RFC 2165, RFC 2608, RFC 2609, RFC 2614.
slpd(1M)