shell - Unix command error -
when try command i'm getting right path
find /home/*/*/*/*.log result
/home/blross23/karthi/mmw/sample.log but when try command
find /home/*/*/*/*.log -mtime +1 -type f -size +2 -printf "%s %h%f\n" the result i'm getting
7950 /home/blross23/karthi/mmwsample.log where @ end of path "/" (mmwsample.log )is missing between 2 directories
correct path /..../mmw/sample.log i'm getting /..../mmwsample.log
what's error in command ???
conseider format in command:
find /home/*/*/*/*.log -mtime +1 -type f -size +2 -printf "%s %h%f\n"
you telling print 2 values without '/' between them. correct it, try:
find /home/*/*/*/*.log -mtime +1 -type f -size +2 -printf "%s %h/%f\n"
Comments
Post a Comment