Ich würde gerne wissen, ob diese beiden Möglichkeiten gleichwertig sind:
Zuerst:
#!/bin/bash
if [ -x $FILE ]
then
echo "You have execution permission to a "$FILE""
else
echo "You don't have execution permission to a "$FILE""
fi
Zweite:
#!/bin/bash
[ -x $FILE ] && echo "You have execution permission to a "$FILE"" || echo "You don't have execution permission to a "$FILE""
IFS
Zeichen).
[ -x "$FILE" ]
;echo "You have execution permission to '$FILE'"