1

i would like to add the path to inserted flash drive named backup1 to a variable so i can copy /Documents/dir to this flash drive path in one script without user interaction

1

Try B=/Volumes/backup1 and then cp -p /Documents/dir/* $B.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .