Re: FIND command ouput



On Mar 17, 11:14 pm, noi ance <n...@xxxxxxxx> wrote:
On Mon, 17 Mar 2008 07:25:52 -0700, pgodfrin typed this message:



Greetings,

I'm looking for a way to use the find command to print out the full file
names (with directories), text based permissions and the date- time
information.

Using 'find `pwd` -ls' gives me:

4472722 0 srwxr-xr-x 1 root root 0 Mar 3 16:11 /
tmp/mapping-root

for example, which is OK - except I want the date in a different format
- for instance like the ls command produces:

srwxr-xr-x 1 root root 0 2008-03-03 16:11 /tmp/mapping-root

I'm thinking there's some sort of environment variable that would help
me - I don't want to mess with the 'find -printf' formatting if I don't
have to... Of course if there's a way to make the ls command printout
the full path name (for each file) then that would be even easier...

thanks,
pg

Dude !!??

Man ls

man find
-exec 'ls --Format' {} \;

hmm - didn't see --format in my man (Fedora 8), but this is what I
used:
find -printf '%M %16u %16g %12s %TY-%Tm-%Td %TT %p\n'
.



Relevant Pages

  • Re: ubuntu-users Digest, Vol 47, Issue 208
    ... Superuser confusion or maybe critically confused ... "Permissions" appears nowhere in Nautilus, so far as I can tell. ... I am attempting to learn to use command line. ...
    (Ubuntu)
  • Re: 2 pc network - cant see host files from pc 2 on pc 1
    ... > Enable it on both computers and use the command ipconfig /all to make sure ... > permissions. ... > user account and/or change the password for a user account. ... It continuously states the windows ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Setting permissions
    ... Permissions or folder Permission, etc? ... the CACLS command for you: ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Granting permissions in ADAM
    ... To add Authenticated Users to the Readers role you can use ADSIEdit, ... Was able to excute the command: ... Permissions inherited to subobjects are: ... only an ADAM user could update their own object. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Server Unavailable - ASP.NET 2.0 on Windows XP
    ... The -ga command isn't a part of that beta version. ... permissions to the global assembly cache. ... Please review the steps in it, for creating a service account for an ASP.NET 2.0 application, ... I've also tried the aspnet_regiis thing as well as setting permissions on folders as described ...
    (microsoft.public.dotnet.framework.aspnet)