use command line to open many files in Xcode
I have a non-Xcode project that has source code organized by a folder structure. The source code all resides in sub-folders of a single root folder.
I want to open the h and c files in Xcode just for reading purposes.
I can get the list of files using the command:
find ~/Documents/FTI/2017/Continental/reareCVP/eBike_Sandbox_C202/ -name "*\.[c|h]"What I want to do is use the open command to take this list of files... something like, but not exactly,
open -a Xcode -f pbpasteI also tried
pbpaste | open -a XcodeNeither of these work.
To use pbpaste, I select the list of file names that resulted from the find command and pasted the list of path and names into a text edit document. Then I replaced all the returns with spaces so that the file path and names were space delimited. then I selected that list in the text document and copied it.
pbpaste returns what's on the clipboard
Thanks for any help or ideas.