LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-25-2015, 11:05 AM   #1
carlos4nyc
LQ Newbie
 
Registered: Feb 2015
Location: New Jersey
Distribution: Ubuntu 14.04
Posts: 11

Rep: Reputation: Disabled
Batch script help


Hello everyone,
Hopefully someone out there get this message.
I just started a class in Linux, and our professor ask us to create a batch script in Linux.
Where can I get help learning about scripting batch files in Linux?
any suggestions?

Regards,
Carlos

p.s. Thank you in advance for your help.
 
Old 02-25-2015, 11:15 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You can read bash scripting guides from tldp site.
 
Old 02-25-2015, 01:13 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,801

Rep: Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176
Quote:
Originally Posted by carlos4nyc View Post
Hello everyone,
Hopefully someone out there get this message. I just started a class in Linux, and our professor ask us to create a batch script in Linux. Where can I get help learning about scripting batch files in Linux? any suggestions?
The tutorials at TLDP are pretty much the 'standard' for learning...there are both advanced and beginner tutorials, with MANY examples:
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
http://www.tldp.org/LDP/abs/html/

Those come up as two of the first hits in Google for "linux bash scripting tutorials"...a basic search for what you need is always a good first step. We'll be happy to help you with your scripting, but when asking for assistance, PLEASE post the code that you have written FIRST, and tell us where you're stuck.

Good luck
 
Old 02-25-2015, 02:43 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 5,119
Blog Entries: 10

Rep: Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815
And it is BASH script not "batch". No worries, but just for correctness sake. And Batch was what was previously used for Windows. Linux generally does not have that term, instead it has the general concept of shell script, one form of which is BASH.

The links provided above are probably the same ones I have in my signature for the BASH guides. I also have a blog, also a link in my signature offering some tips as you get more advanced with scripting and need to debug or use some techniques to accomplish more complex scripts.
 
Old 02-25-2015, 09:14 PM   #5
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,205

Rep: Reputation: 197Reputation: 197
check out this link, bash scripts are easy to digest:

Examples of small bash Scripts
http://www.hlevkin.com/Shell_progr/hellobash.htm
 
  


Reply


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
Converting Batch Script to Shell Script sandeep.gcet@gmail.com Linux - Newbie 10 10-17-2013 11:36 AM
[SOLVED] batch script Rameses Linux - Newbie 5 07-14-2011 07:36 PM
Change batch script to shell script alan.belizario Programming 5 03-31-2005 12:41 AM
Change batch script to shell script alan.belizario Linux - Software 1 03-30-2005 01:49 AM
Batch mv and tr script ... OrangeWarp Linux - General 1 12-11-2002 05:14 AM


All times are GMT -5. The time now is 01:21 AM.

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