let us say i have a file called "foo1.txt,v" in directory location1/bar containing my desired text enclosed in a starting tag and a ending tag 

```
@@
text
@<content> 
@

```

my directory bar contains "foo1.txt,v" "foo2.txt,v"......."fooN.txt,v"

i want to get content between the tags @@\ntext\n@ and \n@\n from each file and save it in
location2/bar with filename foo1.txt foo2.txt ...... fooN.txt

i.e. duplicate the folder structure to another location while removing the ",v" from filename where the new file contains only the dear text