I am trying to create a script that takes a parameter with a / in the between the directory and file. I then want to create the directory and create the file inside that directory. I don't really have a huge idea of what I am doing so I don't have any code other than the basic skeleton for a bash if statement.
#!/bin/bash
if [ $1 ?? "/" ]; then
do
fi
If for example the parameter of Website/Google is passed a directory called Website should be created with a file called Google inside it.