05-02-2014
Show us what you have tried so far to resolve this problem.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
Could some expert soul please help me with this? I have following file format -
task time
abc 5
xyz 4
abc 5
xyz 3
ddd 10
ddd 2
I need to generate output as -
task ... (5 Replies)
Discussion started by: sncoupons
5 Replies
2. Shell Programming and Scripting
Hello,
I am having 1800 files in a directory with a specified format, like
amms_850o_prod.000003uNy
amms_850o_prod.000003u8x
amms_850o_prod.000003taP
amms_850o_prod.000003tKy
amms_850o_prod.000003si4
amms_850o_prod.000003sTP
amms_850o_prod.000003sBg
amms_850o_prod.000003rvx... (12 Replies)
Discussion started by: atlantis
12 Replies
3. Shell Programming and Scripting
not sure if it's called "group by" , but what i'm going to do is like this:
i have a file below:
192.168.1.10
192.168.1.10
192.168.1.10
192.168.1.11
192.168.1.15
192.168.1.15
192.168.1.20
192.168.1.22
then i hope to get the result like this:
192.168.1.10 : 3
192.168.1.11 : 1... (6 Replies)
Discussion started by: tiger2000
6 Replies
4. Solaris
Hi,
When I include a user to the secondary group "sys" GID=3 in Solaris 9 OS I'm not able to login. I get these error. The user home directory and the shell exists. Is this because of any security hardening.
# su - agent
No directory!
# su agent
su: No shell
# grep taddm /etc/passwd... (14 Replies)
Discussion started by: agent001
14 Replies
5. Shell Programming and Scripting
Hi,
I have a following file:
role.IMPACT_USER.user=admin
role.IMPACT_USER.user=dd12345
role.IMPACT_USER.user=ss76767
#role.IMPACT_USER.user=root
#role.IMPACT_USER.group=System
role.IMPACT_USER.group=ImpactUser
#Description: Allow users to login in to Impact, start and stop service... (5 Replies)
Discussion started by: dbashyam
5 Replies
6. Shell Programming and Scripting
I am having some problems when writing shell as follows:
shell runs but returns no results
echo "enter group name: "
dir="/home"
read group
if id -g $group > /dev/null 2>&1
then
echo "group exits"
else
echo... (6 Replies)
Discussion started by: kingkner
6 Replies
7. Shell Programming and Scripting
Hi All,
I want to display the distinct values in the file and for each distinct value how may occurance or there.
Test data:
test1.dat
20121105
20121105
20121105
20121105
20121106
20121106
20121106
20121105
I need to display the output like
Output (2 Replies)
Discussion started by: bbc17484
2 Replies
8. Shell Programming and Scripting
Hi,
I want to know if there is any simple approach to SUM a field based on group by of different fields
for e.g.
file1.txt contains below data
20160622|XXX1||50.00||50.00|MONEY|Plan1|
20160622|XXX1||100.00||100.00|MONEY|Plan1|
20160623|XXX1||25.00||25.00|MONEY|Plan1|... (3 Replies)
Discussion started by: cnu_theprince
3 Replies
9. Shell Programming and Scripting
Hello All,
I saw this problem on one of the forum and solved it using group-by in oracle sql, though I am a bit curious to implement it using shell script :
There is a file having number of operations :
Opeation,Time-Taken
operation1,83621
operation2,72321
operation3,13288... (11 Replies)
Discussion started by: mukulverma2408
11 Replies
LEARN ABOUT CENTOS
avahi-browse-domains
avahi-browse(1) General Commands Manual avahi-browse(1)
NAME
avahi-browse - Browse for mDNS/DNS-SD services using the Avahi daemon
SYNOPSIS
avahi-browse [options] service-type
avahi-browse [options] --all
avahi-browse [options] --browse-domains
avahi-browse [options] --dump-db
avahi-browse-domains [options]
DESCRIPTION
Browse for mDNS/DNS-SD network services and browsing domains using the Avahi daemon.
OPTIONS
Specify a DNS-SD service type (e.g. _http._tcp) to browse for on the command line, or -a to browse for all available service types. Items
that appear on the network are prefixed with "+", items that disappear are prefixed with "-". If --resolve is passed items that are
resolved are prefixed with "=".
-a | --all
Browse for all service types registered on the LAN, not just the one specified on the command line.
-D | --browse-domains
Browse for browsing domains instead for services. avahi-browse-domains is equivalent to avahi-browse --browse-domains
-d | --domain= DOMAIN
Browse in the specified domain. If omitted avahi-browse will browse in the default browsing domain (usually .local)
-v | --verbose
Enable verbose mode.
-t | --terminate
Terminate after dumping a more or less complete list.
-c | --cache
Terminate after dumping all entries available in the cache.
-l | --ignore-local
Ignore local services, show only remote services.
-r | --resolve
Automatically resolve services found.
-f | --no-fail
Don't fail if the daemon is not found running. Instead, wait until it appears. If it disconnects, try to reconnect.
-p | --parsable
Make output easily parsable for usage in scripts. If enabled fields are separated by semicolons (;), service names are escaped. It
is recommended to combine this with --no-db-lookup.
-k | --no-db-lookup
Don't lookup services types in service type database.
-b | --dump-db
Dump the service type database (may be combined with -k)
-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-publish(1), avahi-resolve(1), avahi-daemon(8)
COMMENTS
This man page was written using xml2man(1) by Oliver Kurth.
Manuals User avahi-browse(1)