I would like to create a bash script that would contain the following:
- I/O redirection
- Pipes
- Symbolic Link
- Wild cards
- Add a user to multiple groups.
I know how to execute the commands to create each of them individually, but I can't figure it out how I could create a bash script that would execute all of them at once. Can someone help me please? I would greatly appreciate it.
#/bin/bash
cd /home
mkdir testdir &&
cd testdir
touch testfile.txt | ln -s /etc/passwd symboliclink && cd .. | mkdir things && cp -rf /testdir /things | usermod -aG admins,hr,payroll test