Write a script that copies the file tree (including subdirectories) in your home directory. As the initial directory to take the directory / usr / share / doc, as the destination directory using the directory $ {HOME} / doc.
Write a script corresponding to paragraph 1. Additional conditions: a) should be copied only the files without the end, that is, not match the pattern *.* to the names of newly created files to add the ending. txt; b) files should be copied only with the ending. html, ending again should be replaced with. HTM
Write a script corresponding to step 2. Additional terms: names of newly created directories must be made in the upper register.
Write a script that prepares a list of files from this directory and its subdirectories. The script receives the following parameters:
mask of files to search for
ownership of files to search for
File access rights
For laboratory work to use external commands
find (man find)
sed (man sed)
tr (man tr)
basename (man basename)
dirname (man dirname)
Interpreter and builtins bash (man bash)
while; do; done
read
if; then; else; fi