Jul 29, 2025 - 02:43 AMDeutsch | English
Hello unlogged user [ Register | Log in ]

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gsb
Post subject: LINUX Befehle  PostPosted: Dec 26, 2007 - 10:01 AM



Joined: Sep 23, 2005
Posts: 488

Frage nur hier, nachdem ich in 2 Stunden Googeln nicht fündig wurde:
Was bedeutet ! -f (Rufzeichen Leerzeichen minus f)
Ich habe das in folgender Kombiantion gefunden
if [ ! -f $file ];then ...
Danke
Josef
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
dosenfleisch
Post subject: LINUX Befehle  PostPosted: Dec 26, 2007 - 10:19 AM



Joined: Jul 11, 2006
Posts: 164
Location: westerwald
schau mal in die man bash.
http://www.gnu.org/software/bash/manual ... xpressions
dort steht das.

Code:

if [ ! -f tesdatei ] ; then echo "datei fehlt" ; fi


das ! ist eine negierung.

Code:

if [ -f testdatei ] ; then echo "datei vorhanden" ; fi
 
 View user's profile Send private message  
Reply with quote Back to top
horo
Post subject: LINUX Befehle  PostPosted: Dec 26, 2007 - 10:56 AM



Joined: Dec 17, 2003
Posts: 700
Location: Berlin
Ansonsten immer wieder gut: advanced bash scripting guide, das ABS für unix: http://tldp.org/LDP/abs/html/ (gibt's auch als pdf)

Ciao Martin

_________________
omnia vincit pecunia
 
 View user's profile Send private message  
Reply with quote Back to top
gsb
Post subject: LINUX Befehle  PostPosted: Dec 26, 2007 - 11:04 AM



Joined: Sep 23, 2005
Posts: 488

Danke für die Tipps. Da gibt's einiges zu lesen Winken
Josef
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jgese
Post subject: LINUX Befehle  PostPosted: Dec 26, 2007 - 12:01 PM



Joined: Jan 18, 2004
Posts: 645

Hier was in Deutsch

_________________
Bis die Tage
Achim
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.