Yes, you are thinking right. Grep is expecting path, not ls output :P. And if you are using Perl, then getting that path is simple:
Put it before call to grep, and it should work.
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)
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
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,
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)
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 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)
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 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)
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,
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)