DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
test if file is executable bash
if [ -x file ]; then ./file else echo "File is not executable" fi
Source by askubuntu.com #
PREVIOUS
NEXT
Tagged:
#test
#file
#executable
#bash
ADD COMMENT
Topic
COMMENT
Name
5+3 =
Submit