Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-05-2003, 09:06 PM   #1
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
Bash scripts?

Are bash scripts similar to dos batch files and if so do you open a text editor to write a script then put it somewhere so it will execute when you type in the file name to execute it? thanks

I`m a super linux noobie
Old 07-05-2003, 09:10 PM   #2
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
yes but unlike dos you dont' need a file extension...for instance in dos you make your files .bat an example would be "mytest.bat" with something simple coded...
in linux you dont' need a file extension, so if you wrote a script it wouldn't need a .bat ending, it would just be "mytest"....dont' get me can add extensions...but they are unnecssary...

heres something you can look at to get yourself started

Last edited by DrOzz; 07-05-2003 at 09:11 PM.
Old 07-05-2003, 09:29 PM   #3
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Shell scripts can be considered like DOS batch files.
Generally you are able to list a series of commands rather than write a complete program. As with batch files, there are some other things that can be done also.
This is a good quick howto on "that other site".
Old 07-05-2003, 10:13 PM   #4
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
Thanks very much. thats exactly what i needed to know. thanks again guys.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
little help with bash scripts sniff Programming 2 10-26-2005 05:17 PM
bash scripts hoffmanyew Programming 3 08-11-2005 01:27 AM
Need Help With Bash Scripts the_woelf Linux - Software 4 06-30-2004 09:09 AM
Bash Scripts Skute Programming 7 03-12-2004 10:17 AM
$? in Bash scripts clinton Linux - Newbie 4 02-20-2004 11:15 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration