I have a CSV file containing the following two columns:
Column A: From Directory (e.g.
/Volumes/Backup Plus/Salesforce/Order Test/OR-1000049439
).Column B: To Directory (e.g.
/Volumes/Backup Plus/Salesforce/Opportunity Test/Q-DNYE20180508-2308
).
I need to write a script in Terminal that will loop through the CSV and move the directory from Column A into the directory from column B. The end result would be the OR-1000049439
folder residing inside the Q-DNYE20180508-2308
folder). There are roughly 13,000 rows in which I need this to occur.
Can someone please help me on how to do this?
Here is a copy of the first few rows in the CSV file:
I need the folder in A2 to end up in the folder on B2. I need the folder in A3 to end up in the folder on B3, etc...
Brians-MacBook-Pro:Data Migration briangannuscio$ Head OrderFileV2.csv
/Volumes/Backup Plus/Salesforce/Order Test/OR-1000050081,/Volumes/Backup Plus/Salesforce/Opportunity Test/Q-RGORD20170207-1526
Brians-MacBook-Pro:Data Migration briangannuscio$ File OrderFileV2.csv
OrderFileV2.csv: ASCII text, with CR line terminators