Hi all go easy on me as im still getting the hang of this
iv got a bash script that will bundle a few files together. to run it you enter somthing like this
bundle house home light > newfile
this will put the 3 files "house home light" together in the newfile.
I got it doing that but now need to add some error checking.
im trying to make the script detect if the user tries to add a "/" character in any of the parameters and if so output an error message.
how would i go about checking the parameters to see if they contain the '/' character ?
thanx all for your help
iv got a bash script that will bundle a few files together. to run it you enter somthing like this
bundle house home light > newfile
this will put the 3 files "house home light" together in the newfile.
I got it doing that but now need to add some error checking.
im trying to make the script detect if the user tries to add a "/" character in any of the parameters and if so output an error message.
how would i go about checking the parameters to see if they contain the '/' character ?
thanx all for your help