Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Bash scripting help

Hello,

I am learning bash scripting in centos 6, and i was searching internet and didnt found good tutorials that have tasks with answers.
If someone can give me a good tutorial i can practice and easy for newbies

Thanks
(Apr 22, 2015 07:52 AM)cewa Wrote:  Hello,

I am learning bash scripting in centos 6, and i was searching internet and didnt found good tutorials that have tasks with answers.
If someone can give me a good tutorial i can practice and easy for newbies

Thanks
The Linux Command Line
This book has a decent section on BASH, it also covers lots about expansion and regular expressions, and goes over sed and awk.
XMPP: pm me
Thank you so much i will check all your links
This is the tutorial I used.

There's also an advanced guide on the same site:

Advanced Bash-Scripting Guide

Or were you looking to achieve something more specific?
Thank you kind sir ! I think i will learn this somehow :D
Checkout "the Linux Bible" it has bash basics for beginners
In addition to what other have suggested, why not post a description of an action that you want to accomplish w/ Bash. We maybe able to can walk you through the syntax.
My goal is to learn bash I am now a newbie i started learning how to write scripts i just wrote few of them like compare 2 numbers , find if user exists and so one. I want to get better at that because i want a job in that area so that is what i want to accomplish
(Apr 26, 2015 06:27 AM)cewa Wrote:  My goal is to learn bash I am now a newbie i started learning how to write scripts i just wrote few of them like compare 2 numbers , find if user exists and so one. I want to get better at that because i want a job in that area so that is what i want to accomplish

Well good luck on your journey.

If your ooking to expand your knowledge on the subject, try comparing floating numbers using redirection and a program such as 'bc'. (>>>) If you can figure that out, you're pretty much set outside of formatting things. Then again, Bash isn't a strong language.

a="123456789"; a=${a:(-3)}; echo $a;
(Apr 26, 2015 09:06 AM)datguy.dev Wrote:  Well good luck on your journey.

If your ooking to expand your knowledge on the subject, try comparing floating numbers using redirection and a program such as 'bc'. (>>>) If you can figure that out, you're pretty much set outside of formatting things. Then again, Bash isn't a strong language.

a="123456789"; a=${a:(-3)}; echo $a;

Thanks for task :D i will try to do it


Possibly Related Threads...
Thread / Author Replies Views Last Post
by kingpzzoJan 9, 2016 04:28 PM 0 110 Jan 9, 2016 04:28 PM
Last Post: kingpzzo
by Sʜᴀᴅᴏᴡ RᴇᴀʟᴍMar 27, 2014 02:37 PM 6 115 Mar 27, 2014 02:37 PM
Last Post: Trip2nite
by Blackhat.rlshDec 5, 2012 04:32 PM 2 111 Dec 5, 2012 04:32 PM
Last Post: Blackhat.rlsh