AlexanderR
AlexanderR

Reputation: 27

unix ls modified today with full iso

I have found the following command that meets all my requirements bar one. I need the output time style to be full iso. What do I need to change to make this happen?

ls -al --time-style=+%D | grep $(date +%D)

Upvotes: 0

Views: 966

Answers (1)

vanza
vanza

Reputation: 9903

Just modify the time format in your own command:

ls -al --time-style=full-iso | grep $(date --iso-8601)

Upvotes: 1

Related Questions