Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
BASH
(view source)
Revision as of 06:14, 31 July 2015
117 bytes added
,
06:14, 31 July 2015
→Check if a file exists
Line 146:
Line 146:
</source>
</source>
=== Check if a file exists ===
=== Check if a file exists ===
+
if [ -f $FILE1 ]
+
then
+
if [ -f $FILE2 ]
+
then
+
echo OK
+
# MAIN PROGRAM HERE
+
fi
+
fi
+
+
=== Check if directory exists ===
<source lang="bash">
<source lang="bash">
#!/bin/bash
#!/bin/bash
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version