Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,195,506 members, 7,958,536 topics. Date: Wednesday, 25 September 2024 at 04:39 PM

Unix Shell Scripting Newbies - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Unix Shell Scripting Newbies (1281 Views)

Bash/shell Scripting In A Unix/linux Environment / Bash Shell Vulnerability Affects Linux, Unix And Mac OS X / '.php' And '.aspx'-lets Compare Both Scripting Langs (2) (3) (4)

(1) (Reply) (Go Down)

Unix Shell Scripting Newbies by Nobody: 1:15pm On May 08, 2009
I can't find anything on shell scripting here.Please let us use this thread to make a difference in unix shell sripting. I will like to start by asking "Which shell is the best to script in?"
Re: Unix Shell Scripting Newbies by bigboyslim(m): 8:44pm On May 08, 2009
There's a very solid unix scripting tutorial video on youtube. you should check it out


https://www.youtube.com/watch?v=otTfPzX2p80&feature=related
Re: Unix Shell Scripting Newbies by flengure: 9:39pm On Jun 04, 2009
Hi Jabbok,
Here we go with the old "which is the best" question. Like most things in life which is the best is usually a matter of preference, the task at hand and the tools available.
But in any case if you are just starting out in unix shell scripting, I would recommend a unix-like OS like Linux and a shell that is quite universal and comes with most distributions like 'bash', you would like to also get familiar with most of the unix command line tools like sed, awk, grep.
When you get a bit proficient you might want to look at other options like perl and python
Ubuntu Linux http://www.ubuntu.com/is an easy to use OS to start with.
If you only have access to a window machine you might want to look at cygwin http://www.cygwin.com/ which provide most of the unix tools on windows.
You might also find a good bash scripting guide at http://tldp.org/LDP/abs/html/ or google 'bash scripting' i any case always remember 'google is your friend'
Re: Unix Shell Scripting Newbies by olafusimic(m): 4:25pm On Jun 05, 2009
maybe you should give us a problem to solve, I bet you I will get you a good answer. I have been using linux for about 10 months now and studying for the Linux + exam.
Re: Unix Shell Scripting Newbies by Nobody: 1:07am On Jun 21, 2009
I read somewhere that the script below displays a chessboard when called on a Linux shell. I tried it on my Soalris 10 x86 system and I cant get it to display the chessboard. Can someone explain the sript to me and also I'll like to know how to make it to run on my solaris box ?
*****************************************************************************

for (( i = 1; i <= 9; i++ )) ### Outer for loop ###
do
for (( j = 1 ; j <= 9; j++ )) ### Inner for loop ###
do
tot=`expr $i + $j`
tmp=`expr $tot % 2`
if [ $tmp -eq 0 ]; then
echo -e -n "\033[47m "
else
echo -e -n "\033[40m "
fi
done
echo -e -n "\033[40m" #### set back background colour to black
echo "" #### print the new line ###
done

(1) (Reply)

How Can I Get An Sql Database Software For My Web Developments / Linear Programming In Csharp / Help With Sqlite Select

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 11
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.