little c program, just takes input from stdin and tokenises it into commands and seperators as if for bash usage