bash

  1. B

    Delete all Windows partitions

    Hi I'm trying to delete all Windows partitions from disk #!/bin/bash check_windows_part=`fdisk -l | grep -i windows` if [ -z "$check_windows_part"] then fdisk /dev/sdb << EOF d w EOF fi But syntax error near unexpected token `fi' What's wrong ?