Solving problems with the shell?

In this forum members can discuss topics about specific programming languages.
Post Reply
mwm
Posts: 3
Joined: Tue Sep 27, 2011 11:24 pm

Solving problems with the shell?

Post by mwm » Sun Oct 09, 2011 7:30 pm

I've been able to solve a couple of the problems with shell scripts. Usually because the shell has a tool that solves the heart of the problem, or close to it, or a tool designed for integrating into scripts can be used to do that. Especially if the number being searched for includes phrases like "How many characters in ...".

Anyone else run into this?

Any chance of setting my language to shell?

Thanks,
<mike

User avatar
euler
Administrator
Posts: 3068
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Solving problems with the shell?

Post by euler » Tue Oct 11, 2011 7:22 am

Remember the preferred language option is about choosing the language which you think is the best for solving Project Euler problems in general. That's what the "statistics" page represents. It doesn't mean that you necessarily use it for every problem, but it should be based on your view of which language is best suited and you find most useful in tackling the problems. So I will gladly add "shell" if it is your language of choice.
Image
impudens simia et macrologus profundus fabulae

User avatar
Francky
Posts: 90
Joined: Sat May 07, 2011 2:49 pm
Location: South of France

Re: Solving problems with the shell?

Post by Francky » Tue Oct 11, 2011 1:53 pm

mwm wrote:I've been able to solve a couple of the problems with shell scripts. Usually because the shell has a tool that solves the heart of the problem, or close to it, or a tool designed for integrating into scripts can be used to do that. Especially if the number being searched for includes phrases like "How many characters in ...".

Anyone else run into this?

Any chance of setting my language to shell?

Thanks,
<mike
I saw Sam Hocevar's shell solution for PE022, interresting.
That's great to see those kind of implementations, by such a master.
ImageEntia non sunt multiplicanda praeter necessitatem

lrhehe
Posts: 4
Joined: Sun Dec 11, 2011 1:10 pm

Re: Solving problems with the shell?

Post by lrhehe » Sun Dec 11, 2011 1:20 pm

I used to
But I think ipython is better, shell mode

Post Reply