Op Thu, 30 Apr 2015 15:46:37 +0200 schreef Gokan Atmaca <[email protected]>:

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


--
To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]

Reply via email to