Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 351 Bytes

daily_note.md

File metadata and controls

11 lines (9 loc) · 351 Bytes
1.find more than 90 days files in path
find ${PATH} -type f -atime +90 >> m_t_90_day_files.txt 2>&1 &

find /data/shpx/data/ -type f -atime +90 -size +1G
2.how to sum a cloumn numbers
cat more_than_90days_files.txt |xargs -I {} du "{}"|awk 'BEGIN{sum=0}{sum=sum+$1;print $0}END{print sum}' >> 1019_90_shpx.txt 2>&1 &