Date: Sun, 31 Oct 2004 13:38:05 -0800 (PST)
From: [EMAIL PROTECTED]
To: Eugene Unix and Gnu/Linux User Group <[EMAIL PROTECTED]>
Subject: Re: [Eug-lug] Subject: Copying, moving,
    whatever... using wildcards in destination : wc2fn.py

This is all already possible with shell scripting. Shell scripting is very
friendly once you learn it. I recommend "UNIX Shell Programming" by SAMS
if you're further interested in shell programming. Or, you can do it your
way.

Further in your lengthy post, you mentioned that there aren't really any
friendly tools, just a bunch of programs with a specific function that'll
let you do what you want. This is how UNIX works, it's design philosophy.
Actually there is a perl 'rename' program in many packages --I suggest to read the documentation of it and decide for yourself how 'friendly' it'susage seems to you :-) // i.e. I do read documentations
I always recommend to folks that, while using UNIX, they learn the UNIX
way, as it's the least painful route in the long run.

 ...

My point was not to have different shell scripts for *each* little task.
I wanted a tool specifically to handle filename expansion, using the intuitive glob style (yes, a shell feature too :-) for the destination file, similar to how I match the source files. Calling it an extension of glob may be far fetched, but it goes in that direction.
By putting this all in one tool it's a snap to run commands as a test first, or in the debug mode, and to provide meaningful help messages upon failure, add some documentation,...


*** I like to challenge you to pick about half of the examples I gave (some easy/some complex) and show us the *one* shell script that does it.
I am less interested what the script looks like (though it might be quiet educational for many of us) -- I am interested in ease of use and what the commandline input looks like. Concrete --not philosophical.
The next challenge then would be to test that script against all the platforms and shells I mentioned.


 - Horst, still thanks for feedback, also to Steve and Jacob
P.S. I *do* write shell script when I have to.

~~~~~~~~~~~~~~ copy & reply ~~~~~~~~~~~~~~~~
Date: Sun, 31 Oct 2004 20:41:15 -0800 (PST)
From: [EMAIL PROTECTED]
...>
I have to agree with Jake's reply ^^^. However, I felt I had to correct
the original poster when he complained (albeit quite politely) that there
wasn't a real solution with shell. I wanted to point out that, in fact,
what he said can't be done, can easily be done with a simple, albeit
lengthy shell script. I write shell scripts all day long every day, so I
I thought I gave credit to 'powerful shell tools [] to handle such tasks
(find with -exec {} ; xargs ; shell loops) But the emphasis is on *friendly*.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
EUGLUG mailing list
[EMAIL PROTECTED]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to