How do I replace a string in files using SSH?
Последна промяна: 15.10.2025 09:03
To replace a string in files (e.g., test.php) in SSH, use:
sed -i -e s/OLD/NEW/g `find . -name "test.php"`
Replace OLD with the string to replace and NEW with the new string. This command updates all test.php files in the current directory and subdirectories.