Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: Open Files in Unix

by oko1 (Deacon)
on Oct 08, 2008 at 16:50 UTC ( #716042=note: print w/replies, xml ) Need Help??

in reply to Re^2: Open Files in Unix
in thread Open Files in Unix

Is it? Please try "find -iname '*foo'" or "find -regextype posix-egrep '[abc]\.html'" on, say, a Solaris system - or one with OS/X. A plain "find" (i.e., no options) would serve the OP's purpose - but it is not portable, and its use in scripts should be discouraged.

"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf

Replies are listed 'Best First'.
Re^4: Open Files in Unix
by JavaFan (Canon) on Oct 08, 2008 at 19:11 UTC
    You mean, as opposed to the POSIX egrep semantics of the Perl regexp engine? Oh wait.

    It's kind of silly to come up with exotic options of one implementation a find to claim it's non-portable when 1) the OP doesn't need them and 2) said exotic options aren't available in File::Find without a lot of work either.

Re^4: Open Files in Unix
by swartzieee (Initiate) on Oct 08, 2008 at 17:20 UTC
    I just tested the script. It runs with no errors but non of the changes are made. what could be wrong?

      I personally believe that you should avoid repeating your question all over the place, especially in replies that are now part of a subthread gone slightly OT: the reason why "non of the changes are made" is the one ikegami gave you in the first place, namely that -not to mention all the various errors, and there are so many that I pointed out a lot of them myself, but also managed to miss others- you don't update the files you with the changes you made to strings you got out of those files.

      If you can't understand the incipit, then please check the IPB Campaign.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://716042]
and nobody stirs...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2018-06-23 16:24 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.