0

http://www.linux.com

Suppose you want to have some options on your bash shell script, some flags that you can use to alter its behavior. You could do the parsing directly, using ${#} to tell you how many arguments have been supplied, and testing ${1:0:1} to test the first character of the first argument to see if it is a minus sign.

Full story »
snotbutter's picture
Created by snotbutter 17 years 11 weeks ago
Category: High End   Tags:

Best karma users