Tell me more ×
Code Review Stack Exchange is a question and answer site for peer programmer code reviews. It's 100% free, no registration required.

Please help me. I have a problem with writing "Bash Script". I just began to study "bash scripts", so I need help. Could someone write to me some "bash scripts"? I'll be very grateful.

share|improve this question
This is my default bash reference. tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html – garrow Mar 13 '12 at 12:47
1  
@garrow - Well, it really shouldn't be. TLDP's bash documentation is outdated, and in some cases just plain wrong. It should be avoided entirely unless you know how to filter out the junk. It will teach you to write bugs, not scripts. I'd highly recommend the BashGuide instead. – Chris Down Apr 4 '12 at 13:12
@ChrisDown Nice, thanks! – garrow Apr 5 '12 at 2:12

closed as off topic by Quentin Pradet, Gilles, Jerry Coffin, Michael K Mar 13 '12 at 17:09

Questions on Code Review Stack Exchange are expected to relate to code review request within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

Here is a bash script

#!/bin/bash

echo "Hi From Bash Script"

Remember to set the exeutable bit

> chmod +x bashscript.sh

Now run with:

> ./bashscript.sh
Hi From Bash Script
>
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.