I want to know how you would go about checking if something is either a file or a directory. mostly for argument validation stuff.
I know -d is to see if its a directory but im guessing -f is for files??
I want to know how you would go about checking if something is either a file or a directory. mostly for argument validation stuff.
I know -d is to see if its a directory but im guessing -f is for files??
Check your man page for test.