Shell Scripts session followup

0 views
Skip to first unread message

Souvik Das Gupta

unread,
Apr 10, 2008, 4:37:16 PM4/10/08
to uietsunu...@googlegroups.com
Hi

Thanks to Varun, it was a nice session. It was the first time we had
discussed on loads of topics together.
I am starting this thread to continue our discussions and problems
that were left unfinished.

Firstly, I checked out a link for tutorial on Shell Script, we can all
go through it: http://linuxgazette.net/133/cherian.html

Also it seems that there is no "proper" way of specifying 100 numbers
in for loop. The only hopeful alternative is to have a file which has
hundred numbers stored in it and then using something like:
for i in `cat /etc/group`


Regards
Souvik

varun mitra

unread,
Apr 11, 2008, 11:11:56 AM4/11/08
to uietsunu...@googlegroups.com
sir,
  what is cat/etc/group command doing in this case .

AMAN AHUJA

unread,
Apr 11, 2008, 2:10:05 PM4/11/08
to uietsunu...@googlegroups.com
It is :
 
   cat /etc/group
 
which will echo to the screen the contents of the file /etc/group/ which had to be numerals.

AMAN AHUJA

unread,
Apr 11, 2008, 2:13:04 PM4/11/08
to uietsunu...@googlegroups.com
There is a keyword 'seq' too which might do the work for us.
Isn't it?
 
for x in `seq 1 5`
do
echo $x
done
This will echo from 1 to 5.


--
me_aman

@huj

varun mitra

unread,
Apr 11, 2008, 2:41:06 PM4/11/08
to uietsunu...@googlegroups.com
gud one dude .
keep the search work .
 great goin

Souvik Das Gupta

unread,
Apr 11, 2008, 3:06:05 PM4/11/08
to uietsunu...@googlegroups.com
Hey, have you checked out seq??
Not working on my Mac

Regards
Souvik

varun

unread,
Apr 12, 2008, 8:09:02 AM4/12/08
to UIET Sun Open Source User Group
sir,
' seq ' working perfect as a bash shell command in ubuntu.

Aman Ahuja

unread,
Apr 13, 2008, 1:58:49 PM4/13/08
to uietsunu...@googlegroups.com
Is there any specific scripting language too to write the scripts for OS's shell?

varun mitra

unread,
Apr 13, 2008, 5:53:15 PM4/13/08
to uietsunu...@googlegroups.com
hey , check out the wikipedia on "scripting language" and youll get a complete answer to your question

Souvik Das Gupta

unread,
Apr 16, 2008, 12:29:52 AM4/16/08
to uietsunu...@googlegroups.com
Hey I found another good webpage
http://www.geocities.com/cyberkabila/shell/shell.htm
You can download 42 shell scripts from here. It really shows the power
of shell scripts

Regards
Souvik

Ritesh Kushwaha

unread,
Apr 17, 2008, 12:52:32 PM4/17/08
to uietsunu...@googlegroups.com
I even used the 'seq' n many other cmds( from those given over wiki) in my OS ext prac the last day...

Aman Ahuja

unread,
Apr 17, 2008, 1:35:59 PM4/17/08
to uietsunu...@googlegroups.com
That is very good.
--
me_aman

@huj

Souvik Das Gupta

unread,
Apr 18, 2008, 3:36:47 AM4/18/08
to uietsunu...@googlegroups.com
yeah, cool

Regards
Souvik

On Thu, Apr 17, 2008 at 10:22 PM, Ritesh Kushwaha <rites...@gmail.com> wrote:

Aman Ahuja

unread,
Apr 18, 2008, 10:18:41 AM4/18/08
to uietsunu...@googlegroups.com
have my OS prac tomorrow , tel some important commands of shell scripting?
--
me_aman

@huj
Reply all
Reply to author
Forward
0 new messages