Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Off-Topic > The wonderful world of shell scripts
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
20.Sep: FOURTH CHAPTER IN `HISTORY OF...` PUBLISHED
13.Sep: NEWS ON THE FLY
06.Sep: APOLYTON DONATES TO HURRICANE RELIEF

bottom of page
   - CIVILIZATION 3 $9.99 - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - ALPHA CENTAURI + ALIEN CROSSFIRE (laptop collection) from $19.99 - ALPHA CENTAURI PC $9.99 -->
Author
Thread   
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:19
  Old Post 08-05-2005 06:40 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
The wonderful world of shell scripts Browse Apolyton AD-FREE

I love them
Probably the most useful thing ever invented. I don't know how to program Windows-BAT files, but I know BASH and with the GNU commandline utilities you can do almost everything.

The only thing that I hate is the syntax and I've torn several hairs out to get some things right.
VAR=$VAR+1 works that way: VAR=$(($VAR+1))

Anyway I just did one in about one minute that saved me probably 2 hours time of ridiculous work.

Ofc for me, all that would be impossible without Cygwin!
Bash
Cygwin

Qilue is offline Qilue
King
Australia
Dec 1999
time: 15:19
  Old Post 08-05-2005 06:46
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Tired of ads?

OMG, you're Kuciwalker's DL!!!

joncha is offline joncha
Emperor
North of FOPOG
Jan 2003
time: 21:19
  Old Post 08-05-2005 06:49
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

No... that would be Gen. Atkinson.

Gen. Atkinson is offline Gen. Atkinson
Chieftain
of the Allied States of Celtatia
May 2005
time: 05:19
  Old Post 08-05-2005 06:52 Visit Gen. Atkinson's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon

Again... what's with this DL stuff?

You are all mean. And I'm a glutton.

Not for pain, I'm just hungry.

BlackCat is offline BlackCat
Warlord

Jul 2004
time: 05:19
  Old Post 08-05-2005 06:59
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Get a bigger avatar today!

You only lack one step - tcsh is what really rocks. I thougth csh ruled, but then I saw the light

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:19
  Old Post 08-05-2005 07:09 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Increase the size of your Attachments

What's so great about tcsh?

Besides it is 4 a.m. I should get some sleep... or compile the results...

Darsnan is offline Darsnan
King
New Syracuse, Beta Prime
Dec 2001
time: 00:19
  Old Post 08-05-2005 07:20
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Re: The wonderful world of shell scripts Support Apolyton, buy Galactic Civilizations: Deluxe Edition

quote:
Originally posted by Atahualpa
I love them
Probably the most useful thing ever invented. I don't know how to program Windows-BAT files, but I know BASH and with the GNU commandline utilities you can do almost everything.

The only thing that I hate is the syntax and I've torn several hairs out to get some things right.
VAR=$VAR+1 works that way: VAR=$(($VAR+1))


Don't know what data your trying to manipulate, but have you every tried MatLab? Very flexible with data arrays!


D

BlackCat is offline BlackCat
Warlord

Jul 2004
time: 05:19
  Old Post 08-05-2005 07:21
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Actually, I write my scripts in ksh - that is the most portable, but I prefer to use tcsh in my propt (arrow up is much easier) .

Anyway, ksh wasn't invented when I had to choose between sh and csh so I am a csh fan

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:19
  Old Post 08-05-2005 07:24 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Re: Re: The wonderful world of shell scripts Suffering from ads?

quote:
Originally posted by Darsnan


Don't know what data your trying to manipulate, but have you every tried MatLab? Very flexible with data arrays!


D


I have not tried, but it's available in the lab and they said there is even a guy who is quite an expert with it.
As for now I am just doing some filesystem stuff with bash and compile results with a mathematica notebook



I think I go to bed now

Darsnan is offline Darsnan
King
New Syracuse, Beta Prime
Dec 2001
time: 00:19
  Old Post 08-05-2005 07:38
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Re: Re: Re: The wonderful world of shell scripts Support Apolyton buy from Amazon

quote:
Originally posted by Atahualpa


I have not tried, but it's available in the lab and they said there is even a guy who is quite an expert with it.


I'd recommend you become friends with that "Expert", and I'd bet that individual's future is bright wherever they end up.....



D

Agathon is offline Agathon
Prince
Leafs 4TW!! - CPA
Dec 2002
time: 00:19
  Old Post 08-05-2005 07:57
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Help yourself to an AD-FREE life

Where is Kuci? Did he get locked in one of his thirty-two private bathrooms?

aneeshm is offline aneeshm
Chieftain
Indore , Madhya Pradesh
Jul 2001
time: 10:49
  Old Post 08-05-2005 09:54
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Remove this text

Aggie - last time you said he had twenty-something bathrooms . WTF ?

Zulu Elephant is offline Zulu Elephant
Prince

Jun 1999
time: 05:19
  Old Post 08-05-2005 10:09
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Lose 30 kilos (of popups)

ok. been thinking about this for some time.

As a kid, i taught myself basic from a book and wrote simple graphic based games by the time was 11 or 12. After that I got interested in other things.

I currently know nothing about C/C++/visual basic...i dont really even know what these are.

If i wanted to teach myself some stuff and get back into the swing of things, where would be the best place to start? I need free downloads for compilers (is that even the right term) and that sort of thing. Im sure i can find turtorials and stuff online

Im using windows xp and basically am not sure what language i should go for and where to get it.

All help appreciated

Ted Striker is offline Ted Striker
Emperor
United States of America
Jan 1970
time: 21:19
  Old Post 08-05-2005 10:46 Visit Ted Striker's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Help yourself to an AD-FREE life

#!/bin/sh pwnz all these sissy new shells


history command, PAH

Being able to use the backspace without getting garbage or having to set the TTY. PAH

Ted Striker is offline Ted Striker
Emperor
United States of America
Jan 1970
time: 21:19
  Old Post 08-05-2005 10:59 Visit Ted Striker's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Increase the size of your Attachments

quote:
Originally posted by Zulu Elephant
ok. been thinking about this for some time.

As a kid, i taught myself basic from a book and wrote simple graphic based games by the time was 11 or 12. After that I got interested in other things.

I currently know nothing about C/C++/visual basic...i dont really even know what these are.

If i wanted to teach myself some stuff and get back into the swing of things, where would be the best place to start? I need free downloads for compilers (is that even the right term) and that sort of thing. Im sure i can find turtorials and stuff online

Im using windows xp and basically am not sure what language i should go for and where to get it.

All help appreciated


I don't think you will have trouble finding a free compiler. There should be a bunch of them out there. If I would you I'd study some kind of C or Java.

Maybe the programmers around here have better advice on a more specific language.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:19
  Old Post 08-05-2005 11:02
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton buy from Amazon

The Bourne Shell (sh) is what you write the scripts in, so they can be portable.

Ted Striker is offline Ted Striker
Emperor
United States of America
Jan 1970
time: 21:19
  Old Post 08-05-2005 11:18 Visit Ted Striker's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Bourne Shell

I always use Bourne for the reason you said.

Alot of peeps use bash or ksh but they have functions in them that often don't work in other shells.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:19
  Old Post 08-05-2005 11:20
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Tired of ads?

quote:
Originally posted by Zulu Elephant
If i wanted to teach myself some stuff and get back into the swing of things, where would be the best place to start?



If you want to do development work, Linux is a better environment. You get all sorts of Free Software - editors, compilers, debuggers, even profilers. There are also integrated development environments available. Eclipse is general purpose, while netbeans is for Java. There is also gambas.

So find an old computer and install a distro - Fedora Core, Ubuntu, SuSE, etc. The two to stay away from for now are gentoo and debian. Then you can pick a language to study - I recommend Java.

Zulu Elephant is offline Zulu Elephant
Prince

Jun 1999
time: 05:19
  Old Post 08-05-2005 11:33
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton

What difference does it make if i use windows?

Agathon is offline Agathon
Prince
Leafs 4TW!! - CPA
Dec 2002
time: 00:19
  Old Post 08-05-2005 11:38
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Aggie - last time you said he had twenty-something bathrooms . WTF ?


But then I was only referring to his five summer residences.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:19
  Old Post 08-05-2005 11:48
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by Zulu Elephant
What difference does it make if i use windows?


Do you know of any good programmer's editor for windows?

alva is offline alva
Emperor
Republic of Flanders
Sep 2001
time: 06:19
  Old Post 08-05-2005 14:27
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Zulu Elephant
ok. been thinking about this for some time.

As a kid, i taught myself basic from a book and wrote simple graphic based games by the time was 11 or 12. After that I got interested in other things.

I currently know nothing about C/C++/visual basic...i dont really even know what these are.

If i wanted to teach myself some stuff and get back into the swing of things, where would be the best place to start? I need free downloads for compilers (is that even the right term) and that sort of thing. Im sure i can find turtorials and stuff online

Im using windows xp and basically am not sure what language i should go for and where to get it.

All help appreciated

Get the BETA(Visual Studio) for VB.Net 2005 for free.

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:19
  Old Post 08-05-2005 15:50 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Browse Apolyton AD-FREE

quote:
Originally posted by Urban Ranger


Do you know of any good programmer's editor for windows?


SciTE is okay and available for Windows. And you also have the IDEs like Eclipse and standing above all: Visual Studio

Anyway Zulu Elephant, you could probably look at the Cygwin Linux-Environment for Windows. There you got the Gnu C Compiler Family (gcc) which is free. I think you could also get the MinGW32 Compiler which AFAIK you don't need Cygwin with.

As for IDE you should probably go for Eclipse.

quote:
The Bourne Shell (sh) is what you write the scripts in, so they can be portable.


Ah I don't care so much about portability as the scripts work fine in Cygwin and on the Linux-Cluster. Bourne Again!

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:19
  Old Post 08-05-2005 15:57
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Get a bigger avatar today!

quote:
Originally posted by Atahualpa
SciTE is okay and available for Windows. And you also have the IDEs like Eclipse and standing above all: Visual Studio


The thing is though, if Zulu Elephant want to get back into the swing of the things, he should start with Java. So that's dealing with the SDK with command line and possibly netbeans (a lot of people use JBuilder, but I had a hell of a time trying to add the JDBC driver of mySQL to it).

Developing on the command line in Windows is intolerable because of 8.3.

alva is offline alva
Emperor
Republic of Flanders
Sep 2001
time: 06:19
  Old Post 08-05-2005 16:34
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Support Apolyton buy from Amazon

Jbulder..

* alva spits on the floor! Bah

Visual Studio

PS, Jbuilder has unofficially been abandoned by Sun.

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:19
  Old Post 08-05-2005 18:59 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Help yourself to an AD-FREE life

quote:
The thing is though, if Zulu Elephant want to get back into the swing of the things, he should start with Java. So that's dealing with the SDK with command line and possibly netbeans (a lot of people use JBuilder, but I had a hell of a time trying to add the JDBC driver of mySQL to it).

Developing on the command line in Windows is intolerable because of 8.3.


That's what cygwin is for

Besides I'd recommend C# over Java.

alva is offline alva
Emperor
Republic of Flanders
Sep 2001
time: 06:19
  Old Post 08-05-2005 19:02
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Suffering from ads?

quote:
Besides I'd recommend C# over Java.

reds4ever is offline reds4ever
Prince
of the Spion Kop
Mar 2001
time: 05:19
  Old Post 08-05-2005 19:53
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Increase Your PM Length

quote:
Originally posted by Urban Ranger



If you want to do development work, Linux is a better environment. You get all sorts of Free Software - editors, compilers, debuggers, even profilers. There are also integrated development environments available. Eclipse is general purpose, while netbeans is for Java. There is also gambas.

So find an old computer and install a distro - Fedora Core, Ubuntu, SuSE, etc. The two to stay away from for now are gentoo and debian. Then you can pick a language to study - I recommend Java.


All thats a bit over the top, it sounds to me like Zulu just wants a bit of mental exercise and to see whether he's still intested in knocking up a few programs in his spare time.

Just get JBuilder, Borland C or, as Alva may have mentioned ,Visual Studio (or one of the packages in it). Ignore all the crap above, it's total overkill, you'll be put off before you even manage to get "Hello World" up on the screen.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:19
  Old Post 08-05-2005 20:00
Edit/Delete Message Reply w/Quote
#29 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

quote:
Originally posted by alva
PS, Jbuilder has unofficially been abandoned by Sun.


Um, no. JBuilder is a Borland product.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:19
  Old Post 08-05-2005 20:02
Edit/Delete Message Reply w/Quote
#30 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

quote:
Originally posted by reds4ever
Just get JBuilder, Borland C or, as Alva may have mentioned ,Visual Studio (or one of the packages in it).


Is Visual Studio free?

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:19.
Apolyton Time is 00:19.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0536 seconds (93.32% PHP - 6.68% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net