我试图滚动浏览一些这样格式化的数据-
NFI T[PSEC] T[K] EKIN(PSI) E(RHO) ECONS ANNEE ANNER
!> 1 0.00012 0 0.45873 16.26904 16.72777 0.30000 0.00000
!> 2 0.00024 0 1.53365 13.91887 15.45251 0.29100 0.00000
!> 3 0.00036 0 2.57649 10.44460 13.02109 0.28227 0.00000
!> 4 0.00048 0 3.27986 6.47437 9.75423 0.27380 0.00000
!> 5 0.00060 0 3.76512 2.20938 5.97450 0.26559 0.00000
!> 6 0.00073 0 4.07033 -2.21948 1.85085 0.25762 0.00000
!> 7 0.00085 0 4.01375 -6.33776 -2.32402 0.24989 0.00000
!> 8 0.00097 0 3.47760 -9.51439 -6.03679 0.24239 …Run Code Online (Sandbox Code Playgroud) 我想创建一个简单的 tmux conf 来执行以下操作。
tail -f footail -f bar我怎样才能用 tmux 做到这一点。
这就是我所拥有的
#!/bin/sh
tmux new-session -s asdf -n myWindow
tmux select-window -t myWindow
tmux split-window "tail -f /var/log/apache2/samperror.log"
tmux attach-session -t asdf
Run Code Online (Sandbox Code Playgroud)
我想不出任何工作。所以我知道这一切都错了。有史以来最不直观的 conf 文件之一
就像这个问题一样:我想用例如打开一个文件,less -Sx32 file.dat但是当我向下滚动时,将顶行锁定在适当的位置。我怎样才能做到这一点less?