find . -type f -mtime -1 -ls
command not working in sun solaris 5.8
find . -type f -mtime -1 -ls
command not working in sun solaris 5.8
Have not got a Solaris 5.8 system to hand but this syntax works on a OpenSolaris 5.11 system and gives the expected output.
How is it not working for you? Invalid syntax or unexpected output?
that should do your job:
root@mp-wst01 # find . -type f -mtime -1 -ls
14045606 8 -rw------- 1 root root 412 Nov 26 12:19 ./svc/volatile/init.state
264194 4 -rw-r--r-- 1 root sys 3968 Nov 26 00:03 ./motd
272223 1 -rw------- 1 root root 107 Nov 26 09:06 ./sfw/private/smbpasswd
root@mp-wst01 # find . -type f -mtime -1 -exec ls -lai {} \;
14045606 -rw------- 1 root root 412 Nov 26 12:19 ./svc/volatile/init.state
264194 -rw-r--r-- 1 root sys 3968 Nov 26 00:03 ./motd
272223 -rw------- 1 root root 107 Nov 26 09:06 ./sfw/private/smbpasswd
root@mp-wst01 #
don't know what the second table in your "-ls" is, according to the man page, it should be the "size in kilobytes (1024 bytes)"... just look in the ls manpage to find what you want to be displayed...
regards
pressy
Works fine on my sol 8 system...
me works too