I can put all these command directly in shell script.
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want
if I say yes then
New disk label type? [msdos]?
But all these become interactive. Also if I use -s then it will
Instead of that is there any way to pass these answer to command through file.
I don't want to use any third party tool like expect
I was trying to pass all command through file to parted but it wont work.
> cat parted.txt
> parted < parted.txt
So please suggest me way to automate these answer as early as possible.
Thanks in advance.