# Search files by name "filename1" find . -name filename1 # Search for string "string1" through all files from current dir and subdirs grep -R string1 . # Search filenames of files contain string grep -rl "string1" /folder # Replace string "string1" with "string2" in group of files in group of subfolders with similar structure sed -i 's/string1/string2/g' ./**/src/main/resources/*.cfg # Remove line that contain string "string1" in group of files in group of subfolders with similar structure sed -i '/string1/d' ./**/src/main/resources/project.cfg
Overview
Content Tools