11-04-2009
Hi,
You just want to get the file names ? Can the spaces be deleted ? If yes, can you try `tr -s " " ""` and remove spaces ? Will that help your purpose ?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I am looping through the contents of a file as follows
cat file |while read inrec
do
echo $inrec >> $TMP
done
(obviously this isn't all i am doing as it would be pointless but for the sake of the problem this is the important bit)
The file has fields which are separated by... (1 Reply)
Discussion started by: handak9
1 Replies
2. Shell Programming and Scripting
Forgive me. I am very new to kornshell scripts. The simplest things stop me dead in my tracks.
Here are two such examples.
I want to save the first 19 characters of the following string to a variable.
"Operation Completed and blah blah blah"
I know this works (from another thread):
... (2 Replies)
Discussion started by: nancylt723
2 Replies
3. Shell Programming and Scripting
Hi,
I'm looking for a script that receives the traps from a windows machine and treate them. For exemple just write a line in a file on UNIX server. Can you help me ?
Thank you. (2 Replies)
Discussion started by: big123456
2 Replies
4. Programming
Hi,
Well as the title says, I have an array of strings (delimited by null). The length of the array is variable and length of each string is variable as well. What I need is one huge string with the original strings in the array separated by spaces.
For example is an array is such that array... (12 Replies)
Discussion started by: newhere
12 Replies
5. Shell Programming and Scripting
Hi All
I am having problem in substitution of any number of spaces, or a combination of space and tab in between strings in the lines of text file. Is there any way out in Perl? Please help me.
e.g.,
Say the input is in the following format:-
XX yyy zzz... (1 Reply)
Discussion started by: my_Perl
1 Replies
6. Shell Programming and Scripting
Is there a way to treat a string as date and compare it to the current date?
lets assum inpu lik
$ cat myfile
Name Last login
**************************
Sara 2/13/2012
kalpeer 2/15/2012
ygemici 2/14/2012
we want to display the name who logged in during the last #... (4 Replies)
Discussion started by: Sara_84
4 Replies
7. Shell Programming and Scripting
I'm trying to write a bash script to perform basic arithmetic operations but I want to run a comparison on the arguments first to check that they're a number greater than zero.
I want an error to pop up if the arguments args aren't >= 0 so I have:
if ! ]; then
echo "bad number: $1"
fi
... (14 Replies)
Discussion started by: TierAngst
14 Replies
8. Shell Programming and Scripting
Hello,
I have a very travial question....when i run the below script...how can i change my script that will give me an output pf "this is log_vp1" ....i dont want any spaces between log_vp and 1 or any other character...i know i can set a variable for 1(lets say num is the var) and then do... (2 Replies)
Discussion started by: crazy_max
2 Replies
9. UNIX for Beginners Questions & Answers
Command 1:
$script | grep 'Write to ECC( SSID=MARGIN)'
Command 2:
$script | grep 'is not greater than existing logical processing'
The above commands run my script and search the mentioned strings but I do not want to run my script twice. It is increasing run time.
Can someone tell me... (3 Replies)
Discussion started by: Tanu
3 Replies
LEARN ABOUT DEBIAN
avahi-browse
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)