This question is quite similar to How can I list files with their absolute path in linux?
I want to get the name of file or folder with absolute path and date modified.
This command almost does it:
ls -lR /foo/bar | awk '{print $6,$7,$8,$9}'
But it doesnt show the absolute path.
Regards Stollan
Check out the find
command and its printf
option.
find /foo/bar -printf "%p %A@"
See the man page of find
for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With