I have a column B
in my.csv
in which each cell references the filename of a document in a directory source_directory/
.
I'd like to grab each of those names so I can use them as args for other shell commands (like cp
).
Ideally replace list.txt
in the following with the contents of column B in my.csv
cp $(<list.txt) target_directory