Search & replace

Posted on 2004-11-11
Last Modified: 2010-04-20
Hi all

I have fedora test 3 and I''m looking if there is any search/replace functionallity that can also process subdirectories.

I' need to update 1000+ pages

I kinda think it  will take too much time to do this by hand

Question by:x_terminat_or_3
    LVL 36

    Accepted Solution

    Hi x_terminat_or_3,
    There is a program called 'sed' which is a streamline editor which you can specify search and replace as regular expressions. You can call this from a suitable 'find' command to process all files within a particular directory(ies).
    LVL 2

    Author Comment

    right.  Got it

    thanks.  For your fastness as well
    LVL 36

    Expert Comment

    No problem. Post here if you need help with the search and replace regular expression as they can be a bit nasty if you are not familiar with them.
    LVL 2

    Author Comment

    You're right.  It is tough.  But I already closed the question....

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now