summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ult/ult_6/marks1.txt5
-rwxr-xr-xult/ult_6/results.sh3
-rw-r--r--ult/ult_6/students.txt5
3 files changed, 13 insertions, 0 deletions
diff --git a/ult/ult_6/marks1.txt b/ult/ult_6/marks1.txt
new file mode 100644
index 0000000..9a5299d
--- /dev/null
+++ b/ult/ult_6/marks1.txt
@@ -0,0 +1,5 @@
+5 89 92 85
+4 98 47 67
+1 67 82 76
+2 78 97 60
+3 67 68 69
diff --git a/ult/ult_6/results.sh b/ult/ult_6/results.sh
new file mode 100755
index 0000000..acdac84
--- /dev/null
+++ b/ult/ult_6/results.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+mkdir ~/marks
+cut -d " " -f 2- marks1.txt | paste -d " " students.txt - | sort > ~/marks/results.txt
diff --git a/ult/ult_6/students.txt b/ult/ult_6/students.txt
new file mode 100644
index 0000000..ddacd6b
--- /dev/null
+++ b/ult/ult_6/students.txt
@@ -0,0 +1,5 @@
+Hussain
+Dilbert
+Anne
+Raul
+Sven