Given this string of paths, separated by spaces:

```
path/folderA/fileA1 path/folderA/subFolderA/fileA2 path/folderB/fileB1

```

1. I would like to get a string of paths, separated by spaces, only the ones starting with **path/folderA/**.  

Output: `path/folderA/fileA1 path/folderA/subFolderA/fileA2`
2. Then remove any match of **path/folderA/** from this string.  

Final output: `fileA1 subFolderA/fileA2`

Could this be done with a single line?