bansalhimanshu
Programmer
I want to write shell script which takes some flags along with input parameters. What I mean is like ls which can take input as parameters filename/file directory alongwith flags like -l, -m, -a etc.
ls -latr *.txt
This way I want to write my script as
myscript -w myinput
Also do correct me if these characters with hyphen (-) are not called flags but something else.
ls -latr *.txt
This way I want to write my script as
myscript -w myinput
Also do correct me if these characters with hyphen (-) are not called flags but something else.