I ran my shell script on rpi 3. But I got the following error.
script.sh: 51: script.sh: Syntax error: "(" unexpected
my script lines is following.
51: lines_to_be_removed=("allow-hotplug wlan0" "iface wlan0 inet manual" "wpa-conf \/etc\/wpa_supplicant\/wpa_supplicant.conf")
52: remove_lines(){
53: for i in "${lines_to_be_removed[@]}"
54: do
55: sudo sed -i "/$i/,1 d" /etc/network/interfaces
56: done
57: }