I wrote this script #!/bin/bashif [ $# -ne 2 ] ; thenecho \n      Usage : sh $0 BSSID interface   \nexit 0;fiwhile true; doreaver -b $1 -i $2 -vv -N -g 10 -S -asleep 3603;donebut i got this messages :bash T.shT.sh :line 2: $'\r':command not foundT.sh :line 10: $'\r':command not foundT.sh :line 27: syntax error near unexpected token 'done'T.sh: line 27: 'done'
Bash : syntax error near unexpected token ' done '
shell script
Script looks okay. If you had edited/created this on a windows machine and copied to *nix, a  'dos2unix' will fix this. dos2nix T.shInstall the 'dos2unix' rpm if 'dos2unix' returns a 'command not found' message.