Creating a script to move or copy files into multiple directories below the files
How can you create a script to move or copy files from a main directory into multiple directories below the main directory.
|
Is this homework? Have you had any ideas about how it might be done?
|
Quote:
|
files are in the top dir.
test# | Dir1 | Dir2 | Dir3 Copy files from test into each of the directories below the test directory This isnt a homework assignment and I dont see how tee will do this? Please can you give an example? |
Have you any ideas about how to do this? Which commands may be useful?
|
Quote:
Code:
cat file | tee Dir1/file Dir2/file > Dir3/file |
All times are GMT -5. The time now is 05:14 PM. |