Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (0 / 6) |
Uptime: | 111:14:58 |
Calls: | 452 |
Files: | 1,051 |
D/L today: |
118 files (54,340K bytes) |
Messages: | 97,017 |
Hi,
wanted to learn shell using sed and awk as in the O'Reilly book.
I am working on scripts in Common Lisp using shell inside,
here's the link to the code, it's GPL2 :
http://sf.net/projects/lisp-scripts
"Dan" == Dan Cross <cross@spitfire.i.gajendra.net> writes:
I'm sure he does, I'm sure it was meant in jest, and
I'm sure that Randal took it as such.
Kaz Kylheku <643-408-1753@kylheku.com> writes:
On 2025-02-09, zara <johan@freecol.be> wrote:[...]
I am working on scripts in Common Lisp using shell inside,
here's the link to the code, it's GPL2 :
http://sf.net/projects/lisp-scripts
In 2025, nobody is going to download and unpack tarballs you posted to
sourceforge to look at your code.
You might as well scratch it on the wall of your cave with a piece of
charcoal, and invite people to peruse it by the light of a torch.
Consider putting your code on GitHub instead.
In 2025, nobody is going to download and unpack tarballs youposted to sourceforge to look at your code.
... to Perl.
... something any programmer could readily understand.
Now I'd use Python.
gazelle@shell.xmission.com (Kenny McCormack) writes:
In article <voajsf$nd2k$1@dont-email.me>,
Dan Espen <dan1espen@gmail.com> wrote:
...
... to Perl.
... something any programmer could readily understand.
I'm sure opinions will vary on that.
They guy that wrote the sed/awk stuff agreed.
Now I'd use Python.
Gotta keep up with the fashion world, doncha?
Oh, I'm hurt.
I once spent a week converting a LOT of sed/awk to Perl. I turned a complicated mess into something any programmer could readily understand.
(And actually worked.)
Now I'd use Python.
[...], but Shell as well cat gen quite messy if you want to write [...]
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
On 09.02.2025 18:21, Dan Espen wrote:
gazelle@shell.xmission.com (Kenny McCormack) writes:
In article <voajsf$nd2k$1@dont-email.me>,
Dan Espen <dan1espen@gmail.com> wrote:
...
... to Perl.
... something any programmer could readily understand.
I'm sure opinions will vary on that.
They guy that wrote the sed/awk stuff agreed.
Curious; do you mean the authors of those languages or the
authors (pl.) of that unspecific mentioned "sed & awk" book?
Given clarity/cryptically of syntax (and their semantics)
these three languages (Awk, Perl, Sed) for sure vary a lot!
This was an app developed by one of my co-workers.
The app consisted of many shell scripts and many invocations of
awk and sed. There were dozens of files in the app. I was trying to
fix it and worked on it for quite some time before I decided it was too
many files and too many different languages being used.
I ended up re-writing the whole thing as a single Perl script.
The whole thing was all in one file and much easier to understand.
As I said, the original author agreed.
Perl can be cryptic if you use the cryptic parts of the language.
I don't.
I was happily using Perl for a GUI I wrote using Perl/GTK.
As GTK evolved, the Perl support got worse and worse. Eventually
forcing me to move to Python/GTK.
Since then I've found the number of interfaces from Python to other
packages is just amazing.
"Kenny" == Kenny McCormack <gazelle@shell.xmission.com> writes:
... to Perl.
... something any programmer could readily understand.
"Kenny" == Kenny McCormack <gazelle@shell.xmission.com> writes:
Kenny> In article <voajsf$nd2k$1@dont-email.me>,
Kenny> Dan Espen <dan1espen@gmail.com> wrote:
Kenny> ...
... to Perl.
... something any programmer could readily understand.
Kenny> I'm sure opinions will vary on that.
If they don't understand the Perl code, I could recommend a couple of
good books...
On 2025-02-13, Randal L. Schwartz <merlyn@stonehenge.com> wrote:
"Kenny" == Kenny McCormack <gazelle@shell.xmission.com> writes:
Kenny> In article <voajsf$nd2k$1@dont-email.me>,
Kenny> Dan Espen <dan1espen@gmail.com> wrote:
Kenny> ...
... to Perl.
... something any programmer could readily understand.
Kenny> I'm sure opinions will vary on that.
If they don't understand the Perl code, I could recommend a couple of
good books...
That makes no sense. Don't you mean Perl books?
On Sun, 09 Feb 2025 11:07:43 -0500, Dan Espen wrote:[...]
I once spent a week converting a LOT of sed/awk to Perl. I turned
a complicated mess into something any programmer could readily
understand. (And actually worked.)
I have pointed out several times that Perl does everything awk can
do, at least as concisely, and a lot more besides. Which is why I
never bothered to learn awk.
Some people get annoyed every time I say that.
Now I'd use Python.
On 2025-02-13, Randal L. Schwartz <merlyn@stonehenge.com> wrote:[...]
If they don't understand the Perl code, I could recommend a couple
good books...
That makes no sense. Don't you mean Perl books?
That's 11 cents from a retired Gynecologist :-)-O
On 13/02/2025 22:59, Kaz Kylheku wrote:
On 2025-02-13, Randal L. Schwartz <merlyn@stonehenge.com> wrote:[...]
If they don't understand the Perl code, I could recommend a couple
good books...
That makes no sense. Don't you mean Perl books?
Do you know who you are addressing?