Well Im Wondering is it posible to do the following in bash
put commands in say sctions
eg
or am i barking up the wrong tree?
put commands in say sctions
eg
Code:
#define the sections [section1] cd / do some stuff do some more stuff [section2] cd /usr do some stuff do some stuff #start your normal scrit do some stuff do some stuff cd / ls call section 1 and run the commands within cd / do some stuff do some more stuff do some more normal script stuff cd /home/blabla mkdir somedir call setion 2 and run the comands within cd /usr do some stuff do some stuff exit the scritp
Comment