help with find2perl

S

Sunil

All,
The following does not work for me.

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

any pointers?

Thanks,
Sunil.
 
A

Anno Siegel

Sunil said:
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
 
S

Sunil

All,
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.
 
A

Anno Siegel

Sunil said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top