i need to find files lower and bigger that one date i pass, i search in the man find, but i didn't find anything, the only that i find is the parameter -mtime, in this parameter i can pass a number of days, but i need to know the difference between dates, any built-in function for do this? or any parameter for pass to the find command?
hmm I am not shure if you could do that with some linux utility, maybe with scripting somehow, or ls -laR / and then use grep but this will have big overload
I found a lot of posts of this, but i don't believe that not exists a built-in function for do this, really I need to copy the function to my code? or what i didnt' understand?
I think what you are trying to say is that you need to calculate the difference between two dates and express that as a number of days, then pass the number to find's mtime option.
I will take a look at this later when I get home
In the meantime I have definitely seen posts here that give example code on how to subtract one date from another. Try searching for them.
The program is not able to converting the Hexa decimal characters into Ascii characers in Unix.
The same program when i run in Windows, displaying �+�j�, but in unix dispalying different characters.
byte[] bytes = new byte[hex.length()/2];
[LEFT]for(int i=0;i<bytes.length;i++){
bytes = (byte)Integer.[i]parseInt(hex.substring(2i, 2i+2),16);
}
String multi = new String(bytes);
System.out.println(" multi value from unHex method "+multi);
I don't think that UNIX has any built in functionality for doing date math but there are plenty of sites on the web detailing various ways of attacking it. I use a function written in C myself but I cannot give it to you as it was written for the company I work for so is copyrighted.
However here is a link to a site with a C program you can compile that will do date subtraction: -