shell.c
Add -f parameters in test function,when open the file
fails,automatically create "output" directory.