Created a folder for Misc stuff and rewritten README files in english

This commit is contained in:
Jack-Benny Persson 2013-12-15 11:14:16 +01:00
parent 259d1800fb
commit 5d42b00c10
6 changed files with 33 additions and 2 deletions

3
Misc/README.md Normal file
View File

@ -0,0 +1,3 @@
# Misc #
Here I'll put my misc tests and experiments. For example testing out loops, new features I've found in book, or simply just scripts I've made for the fun of it.

16
Misc/count_args.sh Executable file
View 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

12
Misc/shifty_stuff.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# Jack-Benny Persson
# LX13
# Testing out shift
while [ -n "$1" ]; do
echo $1
shift
done
exit 0

View File

@ -1,3 +1,3 @@
# Mina script till kursen #
# Scripts for the scripting course #
Här sparar jag mina övningar m.m.
Here I'll save my misc scripts for the Bash scripting course