Here's a simple Bash script that will copy all files in a directory:
```
#!/bin/bash
# Get the directory to copy from the user
read -p "Enter the directory to copy: " dir
# Get the directory to copy to from the user
read -p "Enter the directory to copy to: " copy_dir
# Copy all files in the directory to the copy directory
cp $dir/* $copy_dir
```
Save this script as a file with a `.sh` extension (e.g. `copy_files.sh`) and make it executable with the command `chmod +x copy_files.sh`. Then, run the script with the command `./copy_files.sh` and follow the prompts to enter the directory to copy and the directory to copy to.
1. Create Bash shell script that would let a user make a copy of all the files in a directory.
1 answer