Interactive shell script to move ("mv") contents of folder, to a new folder

johnklimeck
Contributor II

I understand the echo and read commands, but what follows "read" for /pathtofolder.

Basically I want to input a user's current local home directory path and have the contents be moved (not copied) to another (newly create) user's home folder (replacing the contents, then do the subsequent chown -R command.

I can do all of this in the GUI as Root user, but not sure with terminal commands in an interactive script.

thanks in advance

jk

1 REPLY 1

tlarkin
Honored Contributor

Hey John,

Are you looking for GUI interaction, or for shell interaction? Can you give an example work flow or example code you are currently trying to use?

Thanks,
Tom