Как изменить цвет ls для записей с расширенным ACL?

используя awk

awk '$0=$0 (NR-1)%7+1' file

или

awk '{print (NR-1)%7+1}' file

В основном вычитание 1 нужно начинать с числа ноль.
Modulo 7 - зацикливание через каждые семь строк.
Плюс 1 обусловлен тем, что 7 mod 7 равно 0, а это не то, с чего мы хотим начать, мы хотим начать с 1, поэтому +1.

1
09.09.2018, 18:34
1 ответ

Los siguientes son los códigos de color que encontré en dircolors:

0   = default colour
1   = bold
4   = underlined
5   = flashing text
7   = reverse field
31  = red
32  = green
33  = orange
34  = blue
35  = purple
36  = cyan
37  = grey
40  = black background
41  = red background
42  = green background
43  = orange background
44  = blue background
45  = purple background
46  = cyan background
47  = grey background
90  = dark grey
91  = light red
92  = light green
93  = yellow
94  = light blue
95  = light purple
96  = turquoise
100 = dark grey background
101 = light red background
102 = light green background
103 = yellow background
104 = light blue background
105 = light purple background
106 = turquoise background

con respecto al color de su carpeta, supongo que necesita editar el valor de ow=34;42con el código de color deseado.

3
28.04.2021, 23:45

Теги

Похожие вопросы