So I know how to use sed -i 's/string/new-string/g' *.*
but I'm trying to change all references to a directory structure and I don't know the proper format for the command.
Example: I want to change 'myfolder/mysubfolder' to 'myfolder'.
So if there's a string in a file that says 'myfolder/mysubfolder/file.txt' I want it to say 'myfolder/file.txt'.