06-29-2006
Thank you for the replies; but there is nothing in the config file that represents the hostname
I also tried grep -r but that errors out. I can use grep but not sure how to use the command switches to search for the string...
Can you please guide me since I am a newbie to this stuff...
Your help is much appreciated.
Thanks!
10 More Discussions You Might Find Interesting
1. Solaris
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
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
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
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
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
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
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
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
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
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
ZGREP(1) General Commands Manual ZGREP(1)
NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code:
(-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the
standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.
EXIT CODE
2 - An option that is not supported was specified.
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO
grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)
ZGREP(1)