compound if statement
Hi, I want to include several things in one statement, I am not sure what the syntax is:
Code:
if [[ $EXT="mp3" ] || [ $EXT="wma" ] || [ $EXT="wmv" ]] AND [ $ISDIR!="d" ] ; then |
Sure. You can use "|" for "or", "&" for "and".
Look here for more details: http://www.gnu.org/software/bash/man...al-Expressions Or here: http://www.linuxconfig.org/Bash_scripting_Tutorial |
All times are GMT -5. The time now is 05:26 PM. |