K
K
Konstantin2015-07-17 12:13:17
bash
Konstantin, 2015-07-17 12:13:17

Does anyone have interesting tasks (mainly admin tasks) for bash exercises?

Hello!
In connection with the change of work to a narrower focus, I began to forget my knowledge of bash, which was just average. And I want to expand it.
Actually, who can throw some interesting tasks that can be done at home on a regular virtual stand? Sorting data, parsing and something like that, searching for a package, its version, checking it with a repo, md-heels

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin, 2015-07-17
@fallen8rwtf

1. Banal, the first thing that came to mind:
Write a script for backing up data to a remote machine (as a special case - a backup of a database with a previously unknown number of databases)
Write a script that runs by cron and counts the number of unique records from some log ( access.log auth.log ) and sends it to your email
Write a script that bans suspicious IPs
Write a script that checks that the files in the desired directory have not changed, it is possible with the output of changed files or even changed lines in the file.
2. A little cooler:
Think about which Linux operation you dislike the most and set it to automate
3. Even better:
Go to www.opennet.ru/docs/RUS/bash_scripting_guide, select any script and try to improve it

E
Egor Kazantsev, 2015-07-23
@saintbyte

Write Web / mail / Radius server =)

M
Maxim Moseychuk, 2016-11-02
@fshp

And figure out getopts at last.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question