I have a very simple script that won't seem to work. Can someone please help.
And this is what I get when I run it.Code:#!/bin/bash DIR="/media" if[ 'ls $DIR | wc -l' -eq 0 ]; then echo "No Drive" else echo "Drive Found" fi
./script: line 5: syntax error near unexpected token 'then'
./script: line 5: 'if[ 'ls $DIR | wc -l' -eq 0 ]; then'
Thanks so much!