Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


find_files

Find files tips:

#!/bin/bash

find /u1/database/prod/arch -type f -mtime +3 -exec rm {} \;
cd /some/dir
du -m --max-depth=1
find . -mtime +3 

Argument list too long workaround:

find -type f -name '*.txt'  | wc -l
find_files.txt · Last modified: 2017/12/11 21:24 by juckins