I am trying to implement a program that takes in a process followed by a string consisting of pipeline commands. How do I separate the string of commands, into {individual command/any number of arguments arrays} The "|" is the character that separates the different commands.
For instance, if I put: pipe ls -lt | cat Lebowski | cd .. .
How would i get the system to recognize that there are three separate command line arguments here to be represented in different pipes.
strtok