Exercise 6 and 7 done

This commit is contained in:
2013-12-29 14:58:07 +01:00
parent 43d30c5336
commit 2c3830d50d
3 changed files with 92 additions and 0 deletions

16
Labb8/ovning6.sh Executable file
View File

@@ -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