Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Opinion on best practice... Date: Wed, 6 Feb 2013 15:11:32 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 40 Message-ID: References: <207d17ce-4bc7-487c-acde-6a7b9f66002b@googlegroups.com> NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader1.panix.com 1360163492 4713 64.122.56.22 (6 Feb 2013 15:11:32 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Wed, 6 Feb 2013 15:11:32 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:38283 On 2013-02-06, Neil Cerutti wrote: > On 2013-02-05, Grant Edwards wrote: >> On 2013-02-05, Neil Cerutti wrote: >>> On 2013-02-05, Walter Hurry wrote: >>>>> Sorry, I'm a Linux guy. I have no clue what that means. >>>> >>>> Hooray for common sense! Python is great, but it's silly to use >>>> Python (unless there is good reason) when a simple shell script >>>> will do the job. >>> >>> Python is an excellent option for writing shell scripts, >>> particularly if your shell is cmd.exe. >> >> The OP stated explicitly that the target OS was Linux: >> >>>>> I need to pick up a language that would cover the Linux platform. I >>>>> use Powershell for a scripting language on the Windows side of >>>>> things. >> >> Don't get me wrong -- I think Python is great -- but when the >> target OS is Linux, and what you want to do are file find, >> move, copy, rename, delete operations, then I still say bash >> should be what you try first. > > I had Cygwin on my office computer for many years, and wrote > shell scripts to do things like reconcile fund lists from > separate source files, and generate reports of the differences. Back when the earth was young, I used some pretty extensive Bourne shell scripts to perform design checks on multi-volume software requirements specifications that were written in LaTeX -- and that was on VAX/VMS with DECShell (sort of the VMS equivalent of Cygwin). It worked fine but it was excruciatingly slow because of the high fork() overhead in VMS. -- Grant Edwards grant.b.edwards Yow! If Robert Di Niro at assassinates Walter Slezak, gmail.com will Jodie Foster marry Bonzo??