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 & + + + + + + + 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 + +