n**l 发帖数: 2754 | 1 I want to write a simple c-shell script. It takes a few options, one input
file and one output file, similiar to:
cmd -a -b -c input_file output_file
where -a,-b,-c are options. input_file, output_file are required arguments.
I'd appreciate it if anyone could help me out. Thanks! | t*****g 发帖数: 1275 | 2 man getopts
【在 n**l 的大作中提到】 : I want to write a simple c-shell script. It takes a few options, one input : file and one output file, similiar to: : cmd -a -b -c input_file output_file : where -a,-b,-c are options. input_file, output_file are required arguments. : I'd appreciate it if anyone could help me out. Thanks!
|
|