Re: Tabelle finden

Uwe Koloska <[email protected]>
Newsgroups gmane.user-groups.linux.dresden
Message-ID <[email protected]>
Hallo Ottmar,

Am 30.06.23 um 11:54 schrieb [email protected]:
> find -name *.ods -print bringt kein Ergebnis

Das bringt nicht "kein Ergebnis", sondern der Aufruf ist falsch und 
deshalb sucht es gar nicht:

> root@dell7720:/home/ottmar# find -name *.ods -print
> find: paths must precede expression: `musterdatei.ods'
> find: possible unquoted pattern after predicate `-name'?

Vor den Suchausdrücken muss der Pfad angegeben werden und quoten des 
Musters ist auch wichtig, denn falls an der Stelle mindestens eine Datei 
liegt, die auf das Muster passt, setzt die Shell sie vor dem Aufruf dort 
rein und dann findest du natürlich nur diese Datei(en).

Außerdem ist `-print` die Default Operation und kann deshalb entfallen.

Also versuch mal

   find . -name "*.ods"

In neueren find-Versionen funktioniert es auch ohne den Pfad. Sogar in 
Ubuntu 18.04 -- du musst also ein sehr altes find haben ...

Gruß
Uwe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.