Forrest logo
back to the ls tool

ls:ai:d3b96

Add an increasing number to the start of files using xargs
$ ls | xargs -I % mv % `printf '%03d_%s' $(stat -c %Y %) %`
try on your machine

Add an increasing number to the start of files using xargs

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • add a increasing number to the start of files using xargs?
back to the ls tool