Sponsored Content
Top Forums Shell Programming and Scripting Getting a string without fixed delimiters Post 302515595 by bombcan1 on Wednesday 20th of April 2011 01:06:23 PM
Old 04-20-2011
Yes always SLP
egrep does not work
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using sed to delete string between delimiters

Hi There! I have the following string which i need to convert to i.e. between each occurence of the delimiter ('|' in this case), i need to delete all characters from the '|' to the ':' so that |10,9:12/xxx| becomes |12/xxx| How can i do this using sed? Thanks in advance! (13 Replies)
Discussion started by: orno
13 Replies

2. Shell Programming and Scripting

string deletion, variable contents, fixed delimiters

Hi, I need to mass delete the following string(s) from my files weight=100, However the '100' is variable e.g Current: ---------------- moretext=bar, weight=100, moreinfo=blah extrastuff=hi, weight=9999, extrainfo=foo Desired: ------------------ moretext=bar, moreinfo=blah... (2 Replies)
Discussion started by: rebelbuttmunch
2 Replies

3. Shell Programming and Scripting

sub-string extract between variable delimiters

I need to extract certain pieces from a string, wher delimiters may vary. For example A0 B0 C0 12345677 X0 Y0 Z0 A1-B1 C1 12345678 X1 Y0 Z0 A1/B2 C77 12345679 X2 Y0 Z0 I need to get C0 12345677 X0 C1 12345678 X1 C77 12345679 X2 I tried sed, see example below: echo 'A0 B0... (2 Replies)
Discussion started by: migurus
2 Replies

4. Shell Programming and Scripting

Fetch the rows with match string on a fixed lenth text file - NO delimiters

Hi I am trying to fetch the rows with match string "0000001234" Input file looks like below: 09 0 XXX 0000001234 Z 1 09 0 XXX 0000001234 Z 1 09 0 XXX 0000001234 Z 1 09 0 XXX 0000001234 Z 1 09 0 XXX 0000001234 Z 1... (6 Replies)
Discussion started by: nareshk
6 Replies

5. Shell Programming and Scripting

Program to insert Delimiters at fixed locations in a file, Can you please Debug it for me??

Can someone please help?I have a file - fixed.txt----------------------------AABBBBCCCCCCDDDEEFFFFGGGGGGHHHIIJJJJKKKKKKLLL----------------------------To insert delimiters at fixed lengths of 2, 4, 6, 3, I created a file text1.txt as-------------------2463----------------------and trying to execute... (10 Replies)
Discussion started by: jd_mca
10 Replies

6. Shell Programming and Scripting

grep fixed string with regex

Hello, all! Maybe the title is badly formulated, you can help me with that...! I'm using the GNU grep, and I need to make sure that grep will extract only what I tell it to. I have the following regular expression: *? Well, I need to make sure I grep only a word which may start with a... (11 Replies)
Discussion started by: teresaejunior
11 Replies

7. UNIX for Dummies Questions & Answers

Delete string between delimiters with sed

Hi, I need to delete all text between "|" delimiters. The line in text file typically looks like this: 1014182| 13728 -rw-r--r-- 1 imac1 staff 7026127 2 okt 2010 |/Users/imac1/Music/iTunes/iTunes Media/Music/Various Artists/We Are the World_ U.S.A. for Africa/01 We Are the World.mp3... (2 Replies)
Discussion started by: andrejm
2 Replies

8. Shell Programming and Scripting

How to parse a numeric string without any delimiters?

Hi , I have a number say 12345001 which needs to be parsed. Its a number that has no delimiters.I have to read the last three digits and then the rest of digits irrespective of the total length of the number. The digits then have to be swapped and changed to a fixed length. The fillers to be... (10 Replies)
Discussion started by: Sheel
10 Replies

9. Shell Programming and Scripting

How to Replace string between delimiters?

Basically , i want to delete strings of a particular pattern from the flat file which is " | " pipe delimited. Below are the valid formats : 1) AAA (0) 111-111-111, AAA, BB 2) AAA (0) 111-111-1111;X, AAA, BB original flat file example : |ABC ABC XHAMK|AAA (0) 111-111-111, AAA,... (3 Replies)
Discussion started by: Ravi_007
3 Replies

10. Shell Programming and Scripting

How to replace string between delimiters?

Hello, I would need to replace a delimiter in a flat file using.I would like to replace the semicolon (";") but only if it was contained in a string between quotes. For example: Original flat file example: abc;abc;"abc;abc";cd;"ef;ef";abc aa;bb;"aa";cc;"ddd;eee";ff Desired output:... (9 Replies)
Discussion started by: bartleby
9 Replies
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)
All times are GMT -4. The time now is 07:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy