Windows
type <対象ファイル名> | findstr "正規表現" > 出力ファイル名
type sample.txt | findstr "*sample" > type.log
Linux
cat <対象ファイル名> | grep "正規表現" > 出力ファイル名
cat sample | grep "*sample" > cat.log
是非お試しを~!
Go to list of users who liked
More than 5 years have passed since last update.
Windows
type <対象ファイル名> | findstr "正規表現" > 出力ファイル名
type sample.txt | findstr "*sample" > type.log
Linux
cat <対象ファイル名> | grep "正規表現" > 出力ファイル名
cat sample | grep "*sample" > cat.log
是非お試しを~!
Register as a new user and use Qiita more conveniently
Go to list of users who liked