Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- opcja=
- userid=$(id -u)
- ...
- function system_info()
- {
- if exist $system_info_file rm -f system_info_file echo "Usuniecie pliku system_info_file"
- touch system_info_file echo "Tworzenie pliku $system_info_file"
- "info o pamieci" > system_info_file
- "Zalogowany uzytkownik : "&& whoami > system_info_file
- free -m > system_info_file
- "Calkowita przestrzen na dysku" > system_info_file
- sudo df > system_info_file
- }
- until ["$opcja" -eq "0" ]; do
- clear
- echo -e "1 - Zbierz info o systemie /n2 - Wyswietl zapisane informacje
- 3 - Utworz grupe /n4 - Utworz uzytkownika /n5 - Pobierz i przetworz plik
- 6 - Wyszukaj frazy w plikach /n0 - Opuszczenie Skryptu"
- case "$opcja" in
- "1") system_info();;
- "2")
- ...
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement