How do I handle switches in a shell script?
I know how to deal with simple arguments $1-$9 but I don't know how to code it with such as
-la, for example
ls -la. Could you show me example?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community