Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > help with find2perl

Reply
Thread Tools

help with find2perl

 
 
Sunil
Guest
Posts: n/a
 
      11-25-2003
All,
The following does not work for me.

find2perl . -name \*.\* | xargs fgrep -i 'begin'

any pointers?

Thanks,
Sunil.




 
Reply With Quote
 
 
 
 
Anno Siegel
Guest
Posts: n/a
 
      11-25-2003
Sunil <(E-Mail Removed)> wrote in comp.lang.perl.misc:
> All,
> The following does not work for me.
>
> find2perl . -name \*.\* | xargs fgrep -i 'begin'
>
> any pointers?


No. It's your turn first to give us pointers.

What did you expect it to do.
What does it do instead.
Where there any error messages?

It's not like you're not posting here for the first time, is it.

Anno
 
Reply With Quote
 
 
 
 
Sunil
Guest
Posts: n/a
 
      11-25-2003
> > All,
> > The following does not work for me.
> >
> > find2perl . -name \*.\* | xargs fgrep -i 'begin'
> >
> > any pointers?

>
> No. It's your turn first to give us pointers.
>
> What did you expect it to do.
> What does it do instead.
> Where there any error messages?
>
> It's not like you're not posting here for the first time, is it.
>
> Anno


find . -name \*.\* | xargs fgrep -i 'begin'
was working for me.

find2perl even with the necessary escape characters
find2perl . \-name \*.\* | xargs fgrep \-i \'begin\'
seems to somehow execute fgrep.

It looks like | is not being recognized....

Thanks,
Sunil.



 
Reply With Quote
 
Anno Siegel
Guest
Posts: n/a
 
      11-25-2003
Sunil <(E-Mail Removed)> wrote in comp.lang.perl.misc:
> > > All,
> > > The following does not work for me.
> > >
> > > find2perl . -name \*.\* | xargs fgrep -i 'begin'
> > >
> > > any pointers?

> >
> > No. It's your turn first to give us pointers.
> >
> > What did you expect it to do.
> > What does it do instead.
> > Where there any error messages?
> >
> > It's not like you're not posting here for the first time, is it.
> >
> > Anno

>
> find . -name \*.\* | xargs fgrep -i 'begin'
> was working for me.
>
> find2perl even with the necessary escape characters
> find2perl . \-name \*.\* | xargs fgrep \-i \'begin\'
> seems to somehow execute fgrep.
>
> It looks like | is not being recognized....


No, you must pipe the output of find2perl into perl first. Read the
documatation. From "perldoc find2perl"

SYNOPSIS
find2perl [paths] [predicates] | perl

You can pipe *that* output into xargs.

Anno
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
differences between find2perl and find GU Perl Misc 4 08-31-2009 08:38 PM
Help Help Help Pentax S5i Help needed (Please) The Martian Digital Photography 14 06-20-2008 07:56 AM
find2perl Ed Doyle Perl 1 12-29-2005 06:31 PM
HELP! HELP! HELP! Opening Web Application Project Error =?Utf-8?B?dHJlbGxvdzQyMg==?= ASP .Net 0 02-20-2004 05:16 PM
find2perl and File::Find examples Sunil Perl Misc 3 11-28-2003 11:19 PM



Advertisments