← Oracle questions

Replace word in files

Filed under Oracle

Write a program/script to recursively traverse a directory and replace all occurrences of a target word ('word1') with a replacement word ('word2') within all matching files.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.