Ambiguous output redirect

Anyone has an idea why this error?
I think that my files are okay, but I don’t.

Hi Cristian!! Welcome to the GMT fourm!

I am not sure. But I suggest you to remove the ! symbol after -B1/1 -K >.

If this is csh then >! is allowed, but it looks like you have two separate commands on the same command line hence the shell sees both > and >> and gets confused.