Hi Guys,
the requirement is like this,
i am having a error log file in this format,
4594.493: parallel nursery GC 2594592K->2544691K (2969600K), 30.848 ms
4605.958: parallel nursery GC 2634887K->2584986K (2969600K), 38.900 ms
4619.079: parallel nursery GC 2822555K->2774812K... (12 Replies)
I have an issue where I need to append a value at the last of the csv, I have created a shell script and it is appending the columns at the last but it is appending at all lines, and my requirement is specific to just append at the 1st line.
Have a look and suggest, (7 Replies)
Hi
I am having a question where I have to
1) Identify the number of files in a directory with a specific format
and if the count is >1 we need to concatenate those two files into one file and remember that in the second file the header should not be copied. it should be form first file.... (4 Replies)
Hi Folks,
I was given a task to append three IP's at the end of a specific (and unique) line within a file on multiple servers.
I was not able to do that with the help of a script. All I could was:
for i in server1 server2 server3 server4
do
ssh $i
done
I know 'sed' could be used to... (5 Replies)
file1
----
34556745
32678343
31576776
31455566
21356666
I want to assign the record values to a variable in the below format, so that I can use output in .sql file for querying in database.
('34556745', '32678343', '31576776', '31455566', '21356666')
-----------
below is the... (11 Replies)
Hi Experts,
I want to get my shell script output in a color for a particular word. PFB my output.
TT.QM.JTV1S1 TLORSBT2.JMR701T1.C1 REPOS
TT.QM.JTV1R1 TLORSBF2.JMR701T1.C1 NORMAL
whenever REPOS word comes then entire line should come in red color. Can you please help me... (4 Replies)
Hi there,
I have a requirement to append dates going forward to a certain line in a file.
I'm not sure of how to go about this. Any help will be greatly appreciated.
Thanks
Slyesco:wall: (2 Replies)
Hi,
I had generated a report in my tool as followsoutput.txt
43.35
9
i needed the script to generate a new file like below
i want to append the text to each of these lines of my filenewoutputfile.txt should be
Total Amount : 43.35
Record Count:9
Regards,
Vasa Saikumar.
... (2 Replies)
SQL*Plus version : 11.2.0.4
OS : Oracle Linux 6.5
SQL*Plus is a client application to connect to oracle database. The log file for this tool is generated via spool command as shown below.
I am trying to append date ( $dateString ) to spool file as shown below.
$ cat test2.sh
#!/bin/bash... (4 Replies)
Hi Experts,
I am beginner to the shell scripting, My requirement is to append double quotes for each column in a file if double quotes does not exist.
Example:
"abc"|123|"gh-ch"|23.067
Use code tags, thanks. (10 Replies)
Discussion started by: spidy
10 Replies
LEARN ABOUT LINUX
avahi-publish
avahi-publish-service(1) General Commands Manual avahi-publish-service(1)NAME
avahi-publish-service - Register an mDNS/DNS-SD service or host name or address mapping using the Avahi daemon
SYNOPSIS
avahi-publish -s [options] name service-type port [TXT data ...]
avahi-publish-service [options] name service-type port [TXT data ...]
avahi-publish -a [options] host name address
avahi-publish-address [options] host name address
DESCRIPTION
Register an mDNS/DNS-SD service or host name/address mapping using the Avahi daemon.
OPTIONS
When calling in service registration mode, specify a DNS-SD service name (e.g. "Lennart's Files"), a service type (e.g. _http._tcp) and an
IP port number for the service, optionally followed by any number of TXT record strings on the command line. When calling in address/host
name registration mode specify a fully qualified host name and an address (IPv4 or IPv6).
-s | --service
Register a service. avahi-publish-service is equivalent to avahi-publish -s.
-a | --address
Register an address/host name mapping. avahi-publish-address is equivalent to avahi-publish -a.
-v | --verbose
Enable verbose mode.
-H | --host= HOSTNAME
Specify a host name for this service, in case it doesn't reside on the local host. This host name needs to be fully qualified and
resolvable using mDNS or unicast DNS.
-d | --domain= DOMAIN
Publish the service in the specified domain. If omitted the Avahi daemon will publish it in its default domain (usually .local).
--subtype= SUBTYPE
Register the service with an additional subtype in addition to the main type. DNS-SD subtypes have the form _anon._sub._ftp._tcp,
where _anon is the identifier of the subtype and _ftp._tcp is the main type. You may pass this option multiple times to register the
service with multiple subtypes.
-f | --no-fail
Don't fail if the daemon is not found running. Instead, wait until it appears. If it disconnects, try to reconnect.
-h | --help
Show help
-V | --version
Show version information.
AUTHORS
The Avahi Developers <avahi (at) lists (dot) freedesktop (dot) org>; Avahi is available from http://avahi.org/
SEE ALSO avahi-resolve(1), avahi-browse(1), avahi-daemon(8)COMMENTS
This man page was written using xml2man(1) by Oliver Kurth.
Manuals User avahi-publish-service(1)