Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

output with find to show like ls -l

Status
Not open for further replies.

pappyinsc

Technical User
Feb 25, 2003
3
US
When using the find command, I would like to have the output show like the ls -l command.

using the following:

find /tmp -type f -neweram /tmp/new_file >> /home/newer_files

The results goes to a text file but shows as /tmp/file
I would like to see the file as
-rwxr--r-- username gid size date time filename
format. Is this possible with the find command. Not finding anything in the man pages that states this.
 
something like that:

find /tmp -type f -neweram /tmp/new_file -exec ls -l {}\; >> /home/newer_files vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top