From f42a3b208679d60b12259f103b33f2825265bec8 Mon Sep 17 00:00:00 2001 From: homa Date: Wed, 7 Oct 2015 00:49:04 +0330 Subject: [PATCH 1/2] exc01.sh --- exc01.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/exc01.sh b/exc01.sh index 7146b72..13e97fd 100755 --- a/exc01.sh +++ b/exc01.sh @@ -3,3 +3,12 @@ # Then runs a sleep command for each CPU on the background. +less /proc/cpuinfo or lscpu +sleep 99 & + + + + + + + From f1c3f89ce89122e25302d82cf21b7fbfe8f965ad Mon Sep 17 00:00:00 2001 From: homa Date: Wed, 7 Oct 2015 19:33:05 +0330 Subject: [PATCH 2/2] exc02.sh --- exc02.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/exc02.sh b/exc02.sh index 26b48eb..6ecd865 100755 --- a/exc02.sh +++ b/exc02.sh @@ -2,4 +2,15 @@ # Write an script that accepts a file name and a number as its parameter, # Then return the content of that line number in that file. +for example +echo hello > file1 +echo how are you >> file1 + +then + +wc -l file1 + +cat -n file1 + +