[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: greppare caratteri ascii estesi



On Fri, Feb 06, 2004 at 09:56:24AM +0100, Boto wrote:
> Mattia Dongili wrote:
> 
> >questo da me funziona:
> >
> >find ./ | perl -e "while (<STDIN>) { print if m/[\x80-\xff]/ ; }"
> >
> >ma non mi e' chiaro perche' egrep non funzioni...
> 
> Intendevo quale e` l'errore che ti viene fuori quando fallisce il grep?

no, hai capito male :)

il fatto e' che:
# find ./ | perl -e "while (<STDIN>) { print if m/[\x80-\xff]/ ; }"
./songs/KANA/[Kana] 辿但短湛贈足束続束続束鱈達?贈足.mp3
./songs/KANA/[kana_炭??俗]_buranko_?旦単辿?単?棚短?.mpg
./songs/GO!GO!7188 (2003.04.25)/01.??.mp3
...

mentre:
# find ./ | egrep [\x80-\xff]
./.qt
./.qt/qt_plugins_3.2rc
./.qt/.qt_plugins_3.2rc.lock
...

Il primo e' corretto, il secondo no. In sostanza, non va in errore grep,
si comporta nel modo sbagliato (forse...)

ah, scusate l'encoding della mail...

aloha
-- 
mattia
:wq!
ante diem VIII Idius Februarias MMDCCLVII ab Urbe Condida



Reply to: