Created a folder for Misc stuff and rewritten README files in english
This commit is contained in:
parent
259d1800fb
commit
5d42b00c10
3
Misc/README.md
Normal file
3
Misc/README.md
Normal 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
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
|
12
Misc/shifty_stuff.sh
Executable file
12
Misc/shifty_stuff.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Jack-Benny Persson
|
||||
# LX13
|
||||
# Testing out shift
|
||||
|
||||
while [ -n "$1" ]; do
|
||||
echo $1
|
||||
shift
|
||||
done
|
||||
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user