If you provide a folder named foo bar, OS X will attempt to treat it as two different folders. You may be aware that on UNIX systems, the internal field separator (IFS) environment variable defaults to space. The one flaw in my original code example (you got the quotes) was its inability to handle an input folder name with embedded spaces. Thank you again for the help! This is really appreciated. The goal is to have bash copy the txt file line per line, and use it to rename a copy of "folder-contents", so in the end the list in turn would be this: To clarify, the "folder-contents" is a folder with a handfule of files and sub-directories that need to be copied in its original form, and the source folder be renamed after a name in list.txt.Īs an example, lets say the "list.txt" file includes the following text:Īnd the "folder-contents" is formatted like this: However, I'm still not getting the results I need. I was doing some research, and this did help familiarize me with syntax needed to accomplish this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |