algorithm:
replace the last "-" on each line with " AAA "
input file:
-some-text-here
some-morehere
blah-blah-
-end
output file:
-some-text AAA here
some AAA morehere
blah-blah AAA
AAA end
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..