diff --git a/Labb8/loggedin.html b/Labb8/loggedin.html
new file mode 100644
index 0000000..a043e87
--- /dev/null
+++ b/Labb8/loggedin.html
@@ -0,0 +1,23 @@
+
Logged in users
+
+
+
+User | TTY | Date | Time |
+
+jake | tty7 | 2013-12-06 | 14:10 |
+
+jake | pts/0 | 2013-12-26 | 08:56 |
+
+jake | pts/1 | 2013-12-06 | 14:56 |
+
+jake | pts/2 | 2013-12-29 | 14:21 |
+
+jake | pts/3 | 2013-12-26 | 08:56 |
+
+jake | pts/5 | 2013-12-27 | 17:58 |
+
+jake | pts/7 | 2013-12-28 | 11:05 |
+
+
+
+
diff --git a/Labb8/ovning6.sh b/Labb8/ovning6.sh
new file mode 100755
index 0000000..8795a62
--- /dev/null
+++ b/Labb8/ovning6.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# Jack-Benny Persson
+# LX13
+# Exercise 6 - lab 8 (Write a script with awk that prints linenumbers)
+
+# Sanity check
+if [ $# -ne 1 ]; then
+ echo "$0 requiers one argument"
+ exit 1
+fi
+
+awk '{ print NR" " $0 }' "$1"
+
+exit 0
+
diff --git a/Labb8/ovning7.sh b/Labb8/ovning7.sh
new file mode 100755
index 0000000..513510b
--- /dev/null
+++ b/Labb8/ovning7.sh
@@ -0,0 +1,53 @@
+#!/bin/bash
+
+# Jack-Benny Persson
+# LX13
+# Exercise 7 lab 8 (Write a script to show logged in users in a HTML table
+
+# Binaries
+Awk="/usr/bin/awk"
+Sed="/bin/sed"
+Printf="/usr/bin/printf"
+Who="/usr/bin/who"
+
+# Variables
+Outfile="/home/jake/loggedin.html"
+
+# Sanity check
+if [ ! -w `dirname $Outfile` ]; then
+ echo "Can't write to `dirname $Outfile`"
+ exit 1
+fi
+
+for Bin in $Awk $Sed $Printf $Who; do
+ if [ ! -x $Bin ]; then
+ echo "Can't execute $Bin"
+ exit 1
+ fi
+done
+
+
+### Main ###
+exec 1> $Outfile
+
+# Print the HTML header for us
+$Printf "Logged in users\n"
+$Printf "\n"
+$Printf "\n"
+$Printf "\n"
+$Printf "User | TTY | Date"
+$Printf " | Time | \n"
+$Printf "
\n"
+
+# Print all the current logins for us in a nice table
+$Who | \
+awk 'BEGIN { OFS=""; ORS="\n | \n" } { print $1, $2, $3, $4 }' |\
+sed '/^[a-z]/s/^//' | sed '/[0-9]$/s/$/<\/td>/' | sed '$d'
+
+# End the table and HTML
+$Printf " |
\n"
+$Printf "
\n"
+$Printf "\n"
+$Printf "\n"
+
+exit 0