Please review the rules, which you agreed to when you registered, if you have not already done so.
If this is not homework, please explain why you were able to write nested if - then - else statements in the code you have shown us, but you are not able to write another if statement now.
Sorry for delay.
I want to create folder=$HOME/test/sample(exists) folders , now i want to add
/HOME/test/sample/Whatever ...here whatever need to take from select statement.
i don't want to write if conditions.
Could you please help me.
I- First of all you should reply to the questions asked by Moderators/admins/advisors/members. So by doing this it shows you are taking this conversation seriously and really willing to learn/help here. Which you haven't replied as of now.
II- You should code tags as per forum rules for commands/codes/Inputs which you are using into your posts.
III- Go through the HOME page here for all the forums and decide wisely that your question could suite which sub forum. Like this case it shouldn't come to UNIX for Advanced & Expert Users(Until you reply our questions and make us feel, your questions should be in this forum).
Until you answer the homework question, you will not get any help.
Until you answer the other questions you have been asked and show us that you are interested in working towards a solution to your problem with our help, there is little reason for any of us to waste our time trying to do your homework for you.
In the first post you said "so now i want to write if condition like" and in post #6 in this thread you said "i don't want to write if conditions.". If we don't understand what you are trying to do, how do you expect us to be able to help you?