/
githubmirror
/
cheat.sh
Обзор
Документация
Войти
/
githubmirror
/
cheat.sh
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
share/adapters/chmod.grc
40 строк
790 B
Igor Chubin
chmod/ output colorization (by iivån) (#197)
10 июн 2020, 06:13
10 июн 2020, 06:13
a15563e
Код
Авторство
О чём код?
# with option -sI # e.g. grc curl -sI mysite.com # http regexp=^(HTTP).* colours=yellow ====== # server regexp=^(Server).* colours=cyan ====== # site regexp=^(Link).* colours=magenta ====== # colouring the output of script 'cheat chmod' # e.g. grc curl -s cheat.sh/chmod/755 # linux string regexp=^(Linux.*Permissions).*(String:)\s+(.*)$ colours=yellow,green,red ====== # linux number regexp=^(Linux.*Permissions).*(Number:)\s+(.*)$ colours=yellow,green,red ====== # header regexp=^(Special)\s+(Owner)\s+(Group)\s+(Public)$ colours=white ====== # setuid regexp=^(Setuid)\s+\[.*\].*(Read).* colours=green,bold cyan ====== # setgid regexp=^(Setgid)\s+\[.*\].*(Write).* colours=green,bold yellow ====== # sticky bit regexp=^(Sticky bit)\s+\[.*\].*(Execute).* colours=green,bold magenta ======