Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# 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