I've checked the internet many times, every single method of comparing the 2 strings just fails, with "command not found"
@oatmeal123 try a space after the if, so if [[ "$1 == "$musician ]] or you could try if [[ "$1" -eq "$musician" ]] im just a student tho so my knowledge of bash is shite so those 2 things may not work
Annoyingly I've had if statements work... this language is very dependant on it's spaces and lack of :/
yea its a pain the ass
in the ass*
@danprince hey dan, i've uploaded my assignment. When you unzip, it seems you have to make the setup file executable again, but thats it, and i have noted that in the instructions. Is there a way to make it executable when you unzip the folder or is that just the way it is?
You guys should read the Unix Haters Handbook if you're interested in other common complaints people have with Unix systems
Bash is very much a pain, which is why sysadmins have seeked to move away from bash-based systems with the introduction of systemd, puppet, chef, docker, etc
@rfrenchBangor Not with zip, but you can with other archiving formats. Don't worry about it too much, it's not important as long as it's in the README
Is it ok if I the initial script just unzips a file instead of generating the hole thing (which includes many scripts in it)?
@eeue56 oki doki thank you for ur help
@GeorgeKouk So long as you demonstrate competence with a range of appropriate commands within your script, then it doesn't matter to us.
How do I use the cp command in a script? I have a file: MyMystery/Files/setup/first.txt
I want to copy it to
You use it just the same as you use it when you're in the shell