[on list]

> On Apache Unix, this just hangs and does nothing and I have to do
"control d" to kill it!
>
>  perl -wpi.org -e "s@/cgi-bin/forum_idx.pl@/fakecgi/fakeforum_idx.pl@"

It doesn't hang, it's waiting for input.

Other notes:
1. A backup file given .org as its extension? Weird. Most people use
.bak.
2. You haven't used /g, so you'll won't replace globally, you'll
    just replace the first occurence.
3. You haven't used /i, so you'll won't ignore case.

The above suggests:

    perl -wpi.bak -e
"s@/cgi-bin/forum_idx.pl@/fakecgi/fakeforum_idx.pl@gi" foo*

to globally search and replace, ignoring case, in files whose name
begins with "foo" in the current directory, and creating backups of
the files (pre-change) called foo*.bak


PS. Please keep email on list unless it is not appropriate for the list.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to