chris-f
4/3/2019 - 9:12 AM

Bash find functions

find . -name "*.R" -exec sed -i 's/string1/string2/g' {} \;
find . \( -name "*.R" -or -name "*.sh" \) -exec egrep --color 'library\(|require\(|::' {} +
# Find files modified one day or less ago (the -1 sets this)
find . -mtime -1 -ls

# Find files modified one hour or less ago
find . -mmin -60 -ls