Is "filename" in your current directory? If not, you may not want to split the unqualified filename out. grep doesn't mind a fully qualified file name.
Try removing these lines:
Everything else looks perfect.
Last edited by Franklin52; 07-07-2010 at 06:30 AM..
Reason: Please use code tags
Hi,
Iam facing following error.please see the below script and error.Iam unable to attach error message to mail and its not sending mail also.
vi Expedites_test.ksh
"Expedites_test.ksh" 49 lines, 2276 characters
#!/bin/ksh... (4 Replies)
helo
I install my product for koren language
I m uisng RHEL -4 operating system
now problem is whenever I open any file
vi filename
I got following error on the screen
E557: Cannot open termcap file
'vt100' not known. Available builtin terminals are:
builtin_ansi
... (1 Reply)
Hi All,
I am new to shell scripting,Could any of you help me on this below :confused:
--------------------
I need to write a shell script where i have open an url and grep for a particular word in the url and want to display it in a flatfile.
Eg: Want to open yahoo.com and grep for yahoo... (1 Reply)
Hi All,
If I use the "/usr/dict/words" inside the shell script, It is showing the error as,
grep: can't open /usr/dict/words
How can we resolve it?
Thanks & Regards,
Raja (2 Replies)
Hi,
I get errors while running xclock from a non root user:
# xclock --- this works fine
# su - girish
$ DISPLAY=:0.0; export DISPLAY
$ xclock
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: :0.0
$
I basically want to... (4 Replies)
Hello,
I am facing a problem with ssmtp mailing agent.
I have installed and configured ssmtp in my RHEL5.3 system. I have written a shell script which sends mail to a couple of email id's. The script uses ssmtp to send mails. When I am running the scipt manually i.e. sh <script_name>.sh then... (3 Replies)
Hi,
I am using File::Find to go through a very large tree.
I am looking for all xml files and open only those that contain a tag <Updated>. I then want to capture the contents of two tags <Old> and <New>.
My problem is, after I open the file and do the first grep for <Updated> (which does... (3 Replies)
Hi all
I am receivng following error while running openoffice on linux system
Please suggest and linux comman which can remove this error:
(I) x.org loaded video driver of...
(II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
(==) Depth 24 pixmap format is 32 bpp
(III) ... (2 Replies)
Hi ,
In a directory i've the files in the following format
pay:year:mon:11789604
pay:year:mon:17675644
---
and i need to get 4th part of the above file name
so i used awk command in the below code
#!/bin/ksh
for test_data in pay*
do
txt_awk = awk -F':' '{print $4;}' $test_data
... (7 Replies)
Hi all, 1st post here. I'm on Solaris and currently, I get the following error if I try to use vim to edit anything:
Error detected while processing function <SNR>6_initialize:
line 2:
E697: Missing end of List ']':
E116: Invalid arguments for function <SNR>6_defineOption
line 3:
E10:... (6 Replies)
Discussion started by: fred2028
6 Replies
LEARN ABOUT XFREE86
zgrep
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)