Is there any way to create and format a partition using a bash script?
I think it can be done with fdisk but I don't know how to feed commands from the bash script into the fdisk shell then exit the fdisk shell.
I'm wanting to create a partition then format it to ntfs from within bash.