LoginSignup
2
0

More than 5 years have passed since last update.

変異数を数える用途で、よく使うのでメモ。

grep -v '^#' hogehoge.vcf | wc -l

-v で次に来るものを除外します。'^#'で、#から始まる行を指定しています。|により、次のコマンドにgrepの結果を渡します。wc -lで行数を数えます。

おしまい。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0