i have some text files in a pre-defined directory, the files end with *.edi Each of them refers in one separate line within itself:
data_file file_n.data
I have to convert this line in every .edi file to sth like
data_file 'another_directory/file_n.data'
i will add 'another_directory/ and ' in the end, because the data will be in another directory. and I have such 200 .edi files files, making it tedious to handle them manually! any help from regexp? I use UltraEdit engine for regexp by the way.
a_dir/
file1.edi
file2.edi
file3.edi
...
and each file refers in one line:
data file file_n.data
becomes:--->
data_file 'another_directory/file_n.data'