A double pipe is used to execute the command "ls -ltr | grep 3340 | wc –l". However, our program is static: it means that code need to be modified and rebuilt if we want to change the commands to execute. In this part, we make our program dynamic instead of static. The following requirements should be implemented:
1- Source file will be called Dynamic.cpp, executable called dynamic.
2- The piped commands to execute need to be passed as arguments to dynamic,and not hardcoded.
3- The max number of arguments should not exceed 5, and not less than 2 (otherwise print an error message)
4- Each argument should be a unix/linux command with its parameters.