Created a folder for Misc stuff and rewritten README files in english
This commit is contained in:
16
Misc/count_args.sh
Executable file
16
Misc/count_args.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Jack-Benny Persson
|
||||
# LX 13
|
||||
# Test to count arguments to a script
|
||||
|
||||
echo "You entered $# arguments"
|
||||
echo "The last argument was ${!#}"
|
||||
echo "The arguments entered was: $*"
|
||||
|
||||
echo "Iterating throuh all the arguments: "
|
||||
for i in $@; do
|
||||
echo "$i"
|
||||
done
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user