私は多くの異なるディレクトリに何百もの[ほとんど異なる]ファイルを持っており、それらはすべて同じ5行のテキストを含んでおり、頻繁に編集する必要があります。例:
/home/blah.txt
/home/hello/superman.txt
/home/hello/dreams.txt
/home/55/instruct.txt
and so on...
5行のテキストは順番に並んでいますが、すべての.txtファイルの異なる場所から始まります。例:
/home/blah.txt内:
line 400 this is line 1
line 401 this is line 2
line 402 this is line 3
line 403 this is line 4
line 404 this is line 5
/home/hello/superman.txt:
line 23 this is line 1
line 24 this is line 2
line 25 this is line 3
line 26 this is line 4
line 27 this is line 5
すべての.txtファイルでこれらの5行のテキストを見つけて置き換えるにはどうすればよいですか?