The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Use of IF command in the command line.
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Use of IF command in the command line.
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
06-22-2005
Simerian
Registered User
Join Date: Oct 2003
Location: United Kingdom
Posts: 37
yeah..., that is the continuation marker.
You can type:
if [[ -f
filename
]] then
[ENTER]
echo "File exists"
[ENTER]
else
[ENTER]
echo "File does NOT exist"
[ENTER]
endif
[ENTER]
...and it should respond accordingly
Simerian
View Public Profile
Visit Simerian's homepage!
Find all posts by Simerian