I have a File that contains only the following line:BOF(REF-REQ0001 SW_requirement)EOFI need to generate a second file that would contain the following:BOF(REF-REQ0001 SW_requirement)(REF-REQ0002 SW_requirement)(REF-REQ0003 SW_requirement)EOFThat is, the first line must be duplicated and for each of them the numeric part of REQ0001 must be incremented with 1.
Increment numeric pattern in file
sed;awk