Какие дистрибутивы содержат $ HOME / .local / bin в $ PATH?

Если вам нужен двойной месяц

sed '
    2~2{                                               #for even lines
        N                                              #attach next line
        s/\(\S\+ \)\(\S\+ \)[0-9]*\n\(\S\+\).*/\2\1\3/ #rearrange two line
    }
    1c\Name Month1 Month2                              #output new header
    ' file.data

Или двойные отметки

sed '
    1!N             #from second line attach next line 
    s/\S\+ //       #remove first field (2016-10)
    s/\n.* / /      #remove 2 fields in attached line
    t               #ommit 1st line
    s/$/1 Marks2/   #arrange header
    ' file.data

Другая версия

echo 'Name Marks1 Marks2' ;\
paste -sd' \n' <(tail -n +2 file.data) |
cut -d' ' -f 2,3,6
49
16.10.2016, 19:51
1 ответ

En las distribuciones basadas en RPM, la situación parece ser la siguiente

  • RHEL 7 -lo agrega al final de PATH verhttps://bugzilla.redhat.com/show_bug.cgi?id=1583227cuando usa un shell de inicio de sesión. Funcionará con sudo su -l johndoepero no funcionará si no usa el interruptor -l.
  • CentOS 7 -ver RHEL, siempre sigue a RHEL.
  • Fedora 28 (probablemente también más antiguo)-igual que RHEL/CentOS, agregado al final de PATH

Si desea ver esos errores ordenados, no olvide votar/comentarlos, ya que esto resaltaría la importancia del problema.

5
27.01.2020, 19:34

Теги

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