[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: BASH



Op Thu, 30 Apr 2015 15:46:37 +0200 schreef Gokan Atmaca <linux.gokan@gmail.com>:

Hello

Parameterized with BASH I want to write a script. For example: I want
to put parameters such as ./script.sh --dic --file.


How can I do this?



from the Advanced Bash-Scripting Guide:
http://tldp.org/LDP/abs/html/refcards.html

./script.sh is variable $0 in script.sh
--dic is variable $1 in script.sh
--file is variable $2 in script.sh

success,

Floris


Reply to: