単語(検索された単語/行)からファイルの終わりまでファイルの内容をコピーしたい。
例:File1:
this is a sample text for file1 in PA
this is a sample text for file1 in CA
this is a sample text for file1 in CT
this is a sample text for file1 in IL
this is a sample text for file1 in MI
end of the file.
「CT」のある行からファイルの最後まで内容をfile2にコピーしたい。出力:File2
this is a sample text for file1 in CT
this is a sample text for file1 in IL
this is a sample text for file1 in MI
end of the file.