Jump to content

Command Crate ¿about?

Set modification time of PNG and GIF files to 1 AM today (touch)

find "${HOME}/cats" \( -name "*.png" -o -name "*.gif"\) -exec touch -t "$(date +%Y%m%d)0100" {} \;

Finds all PNG and GIF files within the specified directory and sets their modification time to 1:00 AM of the current day.

file management [kb:277]