ファイルが与えられた場合: $ cat file 1 a C B 2 c 3 A b デフォルトでsortは: $ sort file 1 2 3 a A b B c C LC_COLLATE=Cその前に小文字大文字にソートされます: $ LC_COLLATE=C sort file 1 2 3 A B C a b c 大文字と小文字の順序、つまり数字、小文字、大文字を逆順に並べ替えることは可能ですか?
仕事に来るたびにタイプします xrandr --auto xrandr --output VGA1 --right-of LVDS1 これにより、2番目のディスプレイが機能しますが、今では xrandr: cannot find crtc for output VGA1 参考のために、xrandrの出力を示します。 Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 8192 x 8192 LVDS1 connected 1366x768+1920+0 (normal left inverted right x axis y axis) 277mm x 156mm 1366x768 60.0*+ 1360x768 59.8 60.0 …
whereとwhichシェルコマンドの違いは何ですか?下記は用例です ~ where cc /usr/bin/cc /usr/bin/cc ~ which cc /usr/bin/cc そして ~ which which which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' /usr/bin/which ~ which where /usr/bin/which: no where in (/usr/local/bin:/bin:/usr/bin:/home/bnikhil/bin:/bin) また ~ where which which: aliased to alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde which: shell built-in command /usr/bin/which /usr/bin/which …
そのようなファイルが与えられた場合 First,Last,Age Cory,Klein,27 John Jacob,Smith,30 内容を転置するコマンドラインユーティリティがあり、出力が次のように表示されますか? First,Cory,John Jacob Last,Klein,Smith Age,27,30