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="
Code: Select all
more file1 | sed 's/\(.*\)\//\1\" archives="/' > file2
Any help will be appreciated, thanks in advance..