ファイルの指定した行のみ表示する
10行目を表示する sed -n 10p file 10-20行目を表示する sed -n 10,20p file
7 search resultsShowing 1~7 results
You need to log-in
10行目を表示する sed -n 10p file 10-20行目を表示する sed -n 10,20p file
それぞれsortしたものをファイルに出力しなくても以下のコマンドで一発でsortしてからdiffを取ることができます。 diff <(sort a.txt) <(sort b.txt)
> a = 1 => 1 > defined?(a) => "local-variable" > def b;end => nil > defined?...
基本的にfilterで呼び出すメソッドに引数は渡せません。 しかし、ちょっと工夫することでそれに相当するものを作ることはできます。 class FooController < Applic...
lsの色を変えようと思って検索するとdircolorsコマンドを使えという記事がよく出てくるのですが、Macでは標準でこのコマンドはありません。(dircolorsはGNU ls用のコマンドで、...
tmux-powerlineを使い始めたのですが、設定ファイルを複数端末で共有している関係で、tmux-powerlineがインストールされていない場合は読み込まないようにしたいと思いました。 ...
.tmux.confでこの設定を追加すると選択できるようになります。 .tmux.conf set-window-option -g mode-mouse on
7 search resultsShowing 1~7 results
Qiita is a knowledge sharing service for engineers.