Re: [Debian]: xterm und grep ueber ein binary?
>> jeder von Euch kennt bestimmt das Problem, dass ein versehentliches grep *
> auch ein binary file erwischt, dass mit im Verzeichnis lag.
1> cat ~/bin/tlist
#!/usr/bin/perl -w
while (@ARGV) {
$file = shift @ARGV;
push (@textfiles, $file) if -T $file;
}
print join(' ',@textfiles), "\n";
1> grep foo `tlist *`
--
"i'm working on it" NV: Per Anhalter durch die Galaxis
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <your_email_address>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder: 423
Reply to: