Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Bardatsky/0/HW1_task_1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
1. wget http://www.sec.gov/dera/data/Public-EDGAR-log-file-data/2017/Qtr2/log20170630.zip
2. unzip log20170630.csv
3. chown bardatsky log20170630.csv
4. chmod +x log20170630.csv
5. mkdir log20170630
6. mv log20170630.csv ./log20170630
7. find ~ -name "log20170630.csv"
8. nano /home/bardatky/log20170630/log20170630.csv
9. grep -w --color "error" log20170630.csv
10. tail -n 500 log20170630.csv
11. grep -c "2017-06-30,14:00.*index.htm" log20170630.csv
12. grep -c "2017-06-30,17.*index.htm" log20170630.csv
13. awk -F ',' '{print $1}' log20170630.csv | sort | uniq -c | sort -rn
14. grep -c "13.94.212.jdf" log20170630.csv

9 changes: 9 additions & 0 deletions Bardatsky/0/HW1_task_2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash


sed -i 's/^adm.*/&,bardatky/g' /etc/group
sed -i 's/^root.*/&,bardatky/g' /etc/group

sudo sed -i 's/Minsk/Berlin/g' /etc/timezone

sudo timedatectl set-timezone Europe/Minsk
7 changes: 7 additions & 0 deletions Bardatsky/0/HW1_task_3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash

touch log20170630/log20170630.csv
strace ./random.sh

touch log20170630/log20170630.csv
strace ./random.sh 2>&1 | grep mv -c