I'm writing a script which will have some arguments and so I am using
but i want to solve the problem with one argument.
I use a switch, for example
-d, and I want the argument for
-d will be the path to a directory, like
I want to test the user's input for a string or path, not a number. Is there any solution to solve this problem? I want to solve it with something like:
If (test) then echo it is string else echo it is not string