I am beginner to Shell Script.
Just want to know how to fetch date of the file from the properties in the UNIX Shell Script?
When I put 'ls -lrt' , could fetch the date where as for last six months we could see only date and time but year is not populated.
Output:
Jan 10 2022
Feb 20 2022
Jan 11 15:10
For third one, year is not populated.
I tried the following commands '''--full-time''', '''--time-style''' and '''stat''' but its not supporting in my UNIX version
Thanks in advance