sed experts. Help

John Hubbard ender8282 at yahoo.com
Thu Oct 23 04:42:08 UTC 2008


Rick Knight wrote:
> Sed experts,
>
> I have a bunch of php scripts, over 1000, that all need to have 1 line 
> removed. The line begins with...
>
> <?php eval(base64_decode(
>
> and is at the top of each file. How would I construct a sed command to 
> remove this line from every file in a directory and it's subs?
>
> Thanks,
> Rick
>
>   
I have found a bunch of sed stuff here:
http://student.northpark.edu/pemente/sed/sed1line.txt
There is an example that shows how to remove Subject lines from 
messages. Look at that. I am not sure how to recursively walk through 
directories but I am sure someone else will chime in that that.

-- 
-john

To be or not to be, that is the question
                2b || !2b
(0b10)*(0b1100010) || !(0b10)*(0b1100010)
        0b11000100 || !0b11000100
        0b11000100 || 0b00111011
               0b11111111
        255, that is the answer.






More information about the kubuntu-users mailing list