Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Searching for HOST NAME in UNIX Post 302078291 by jim mcnamara on Thursday 29th of June 2006 10:39:34 AM
Old 06-29-2006
Code:
find /path/to/top_folder  -name '*' -exec grep -l  'mypattern' {} \;

This will list the filenames that have the pattern you want to search for.
It will search all of the sub-folders. In UNIX they are usually called directories Smilie
 

10 More Discussions You Might Find Interesting

1. Solaris

Unix virtual host detection

I have a need to write scripts that can reliably determine the virtual host of a Sun Solaris system. (1 Reply)
Discussion started by: Meridian
1 Replies

2. Solaris

Unix virtual host detection

Is it possible to reliably detect the virtual host of a Sun Solaris box, within a shell or Perl script? Can a system have multiple virtual host or not host at all ? I was recently made aware of hostname command, but was not sure if this option was the only one available. Any help is much... (3 Replies)
Discussion started by: Meridian
3 Replies

3. UNIX for Advanced & Expert Users

Unix / Host explorer

Anyone know where I can get a download of a unix / aix explorer (pref with X-Windows) to run from Windows XP, as I transfer files between the two systems on a frequent basis. (3 Replies)
Discussion started by: gefa
3 Replies

4. SCO

Searching for Unix bootdisk

Hello. I need to reinstall my Unix Open Server Release: 5 on my Compaq proliant 800, but, my floppy bootdisk Release:5.0.4 is bad. Where can I download that version. That release of Unix is no longer supported by SCO. Thanks. (4 Replies)
Discussion started by: Junior Rod
4 Replies

5. Solaris

ILOM to unix host

Hello- On Solaris 10g x86 - I had two IP addresses , one for unix host (connecting through putty) and one for ILOM (connecting through CLI and web). I had to perform some changes in FS sizes etc, did that on unix host and executed command 'init 6' remotely for them to take place. But, the unix host... (30 Replies)
Discussion started by: panchpan
30 Replies

6. Shell Programming and Scripting

Searching the web...unix

Hello, I am writing a command that uses a search-motor in a website... my code is : lynx -dump "http://www.theweathernetwork.com/index.php?product=search&pagecontent=results&prodtype=city&prodname=$1"|grep $1|head -1000>>temp.txt so if the user types myprogram.sh nameofTheCity: it... (0 Replies)
Discussion started by: andrew1400
0 Replies

7. Shell Programming and Scripting

sftp to UNIX host

Hi, I am writing a shell script that securely connects to an UNIX host and transfer file(abc.txt) from the local machine to the host. sftp user@host get abc.txt bye The code doesn't work.. It throws error at line 2: get :Unknown get command. How can I rectify this problem? (2 Replies)
Discussion started by: Kishore_1
2 Replies

8. UNIX for Dummies Questions & Answers

Not sure if UNIX is searching for files or not?

I am very very new to Unix, working on a shell script for my job and was just trying to come up with the correct find command. I get a > symbol on a new line. I can't exit the program either, it will not go back to the $. I am using Cygwin. I don't know if this means no result, or if the fact none... (3 Replies)
Discussion started by: kimberlyg2007
3 Replies

9. UNIX for Dummies Questions & Answers

UNIX script to use ssh to host

I am doing an old-school command to get an inventory to many host using ssh thru Solaris machine. Please help me find a way thru script to get this automized. This will make me lazy but will surely benefit out of it. thanks in advance. Process I am doing: Host IPs (examples): 10.210.1.2... (1 Reply)
Discussion started by: TripleHar
1 Replies

10. UNIX for Beginners Questions & Answers

Best performance UNIX just for HOST Virtualization?

Hi everybody, Which Unix base OS have best performance for HOST virtualization? I tested SmartOS but it needs another OS to connect remotely! Thanks in advance. (11 Replies)
Discussion started by: mbzadegan
11 Replies
Net::Server::Proto::UNIX(3)				User Contributed Perl Documentation			       Net::Server::Proto::UNIX(3)

NAME
Net::Server::Proto::UNIX - Net::Server UNIX protocol. SYNOPSIS
See Net::Server::Proto. DESCRIPTION
Protocol module for Net::Server. This module implements the UNIX SOCK_STREAM socket type. See Net::Server::Proto. Any sockets created during startup will be chown'ed to the user and group specified in the starup arguments. PARAMETERS
The following paramaters may be specified in addition to normal command line parameters for a Net::Server. See Net::Server for more information on reading arguments. unix_type Can be either SOCK_STREAM or SOCK_DGRAM (default is SOCK_STREAM). This can also be passed on the port line (see Net::Server::Proto). However, this method is deprecated. If you want SOCK_STREAM - just use proto UNIX without any other arguments. If you'd like SOCK_DGRAM, use the new proto UNIXDGRAM. METHODS
NS_unix_path/NS_unix_type In addition to the standard NS_ methods of Net::Server::Proto classes, the UNIX types also have legacy calls to NS_unix_path and NS_unix_type. Since version 2.000, NS_unix_path is simply an alias to NS_port. NS_unix_type is now redundant with NS_proto. These methods were missing between version 2.000 and 2.003 but have been returned as legacy bridges. QUICK PARAMETER LIST
Key Value Default # deprecated UNIX socket parameters unix_type (SOCK_STREAM|SOCK_DGRAM) SOCK_STREAM port "filename" undef # more recent usage port "filename / UNIX" port "filename / UNIXDGRAM" LICENCE
Distributed under the same terms as Net::Server perl v5.16.2 2012-06-06 Net::Server::Proto::UNIX(3)
All times are GMT -4. The time now is 06:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy