migrate to git.charlotte.sh
This commit is contained in:
commit
fbd588721e
412 changed files with 13750 additions and 0 deletions
9
automation-sys320/week10/lecture2.bash
Normal file
9
automation-sys320/week10/lecture2.bash
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
function countingCurlAccess(){
|
||||
file="/var/log/apache2/access.log"
|
||||
curlCounts=$(cat "$file" | cut -d' ' -f1,12 | grep "curl" | uniq -c)
|
||||
}
|
||||
|
||||
countingCurlAccess
|
||||
echo "$curlCounts"
|
Loading…
Add table
Add a link
Reference in a new issue