LoginSignup
11
10

More than 5 years have passed since last update.

Windows と Linux で ファイルから特定文字列を抜き出す方法

Last updated at Posted at 2016-03-17

Windows
type <対象ファイル名> | findstr "正規表現" > 出力ファイル名

type ‪sample.txt | findstr "*sample" > type.log

Linux
cat <対象ファイル名> | grep "正規表現" > 出力ファイル名

cat sample | grep "*sample" > cat.log

是非お試しを~!

11
10
2

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
11
10