LoginSignup
1
0

More than 3 years have passed since last update.

コマンドプロンプトを使ってテキストファイルから指定文字列を含む行を取り出してリダイレクトする

Posted at

DBからダンプしたSQLファイルからinsert文だけを抜き出したかった。
ファイルサイズがデカすぎてエディタで開けない場合に有効

cドライブ直下のdフォルダ内にある1GB弱のbig.sqlから"INSERT INTO"を含む行をouput.sqlに出力する

C:\d>find /N "INSERT INTO" C:\d\big.sql > c:\d\ouput.sql

サンコウ
コマンドプロンプトWindowsの便利な使い方

image.png

1
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
1
0