Hi, i am looking for a windows-batch solution to the problem of, replacing the last occurrence of the given character on each lines of file. the input and the output should be as below:
replace the last "-" on each line with " AAA "
-some-text AAA here
some AAA morehere
Actually i have a unix script to perform the task with sed, wit whom i replace every last / with :/" archives="
more file1 | sed 's/\(.*\)\//\1\" archives="/' > file2
Any help will be appreciated, thanks in advance..