2018. 6. 17.

grep keyword recursively


grep -R —include’{file patterns}’ {keyword}

## example 


grep -R --include '*.xml' server  # find server in xml files. 

Finding older files than specif times

# created time is more than 24hour
    find . -mtime +1    

#find files and delete 

  find  . -mtime +1 -exec rm  {} \;