an important issue in find command any help pleas :)
hiii
i need help in this issue how to find files with unusual size and with unusual names of EX : just dots, names ending with space(s), names containing shell wildcard characters, names containing non-ASCII (control) characters can any one help me pleas :) |
wtf is an unusual size?? you find them by looking for things which match your pattern, e.g. "find / -regex ' $'" should match anything ending in a space.
|
This will match a filename consisting of 5 dots followed by a space and a tab:
Code:
$'..... \t |
In order to ensure I didn't miss any files, I'd do it in Perl using opendir,readdir,closedir fns http://perldoc.perl.org/functions/readdir.html.
Perl's built-in regex engine is very powerful, so you could use that to check for patterns http://perldoc.perl.org/perlrequick.html http://perldoc.perl.org/perlretut.html |
All times are GMT -5. The time now is 09:27 AM. |