Search Results

Search: Posts Made By: drl
Forum: What is on Your Mind? 2 Weeks Ago
3,811
Posted By drl
Hi. Yeah, late. Searched for logo q1 or...
Hi.

Yeah, late.

Searched for logo q1 or o1 or 01, and followed links to images (old-fashioned footwork).

It could be either PPM, a tape manufacturer, or the outfit that designed the logo for...
Forum: Shell Programming and Scripting 4 Weeks Ago
246
Posted By drl
Hi. With the data on file z1, the command: ...
Hi.

With the data on file z1, the command:
pcregrep -o1 '=(.*)' z1
produces:
IN32
On a system like:
OS, ker|rel, machine: Linux, 3.16.0-7-amd64, x86_64
Distribution : Debian 8.11...
854
Posted By drl
Hi. All in a single perl code: extraction of...
Hi.

All in a single perl code: extraction of rightmost 2 digits, omit any containing lines greater than 33, numerically sort left-over lines based on right-most 2 characters:
#!/usr/bin/env perl...
1,257
Posted By drl
Hi. Indeed. The first question one needs to...
Hi.

Indeed. The first question one needs to answer is Does it have to be faster? Otherwise you are spending time that probably could be better spent elsewhere.

That being said, I have been...
1,308
Posted By drl
Hi. I think those of us who use macos may...
Hi.

I think those of us who use macos may need to get used to zsh. Here is a demo zsh script that was run on Mojave, not using eval:
#!/usr/bin/env zsh

# @(#) z1 Demonstrate feature.
...
Forum: What is on Your Mind? 11-03-2019
2,184
Posted By drl
Hi. Slow, but still impressive. Might...
Hi.

Slow, but still impressive.

Might be an interesting project to run on a simulator:

VICE - the Versatile Commodore Emulator (http://vice-emu.sourceforge.net/)
or something similar.
...
Forum: OS X (Apple) 10-26-2019
2,152
Posted By drl
Hi. Thanks to Scrutinizer for starting this...
Hi.

Thanks to Scrutinizer for starting this (and possibly to wisecracker for an earlier note).

My collection of links is below, in no specific order of usefulness.

My current interest in...
Forum: Programming 08-28-2019
6,717
Posted By drl
Hi. Looks like progress. When I run...
Hi.

Looks like progress.

When I run into trouble with perl that I cannot seem to solve by looking in the books, I often search PerlMonks - The Monastery Gates (https://www.perlmonks.org/) --...
Forum: Programming 08-27-2019
6,717
Posted By drl
Hi. Good to see people picking up perl....
Hi.

Good to see people picking up perl. Although use has declined, I still find it very useful. The O'Reilly trilogy is quite useful, and I have found the PBP to be especially valuable. The tools...
Forum: What is on Your Mind? 07-24-2019
6,724
Posted By drl
Hi, Neo. Thanks for taking the time to...
Hi, Neo.

Thanks for taking the time to improve it -- easier to read for me ... cheers, drl
Forum: What is on Your Mind? 07-05-2019
6,724
Posted By drl
Hi, Neo. Thanks, I like it. In the last...
Hi, Neo.

Thanks, I like it. In the last frame, There were no winners ..., the type size was small and went by too quickly for me to be able to read it in one viewing ... cheers, drl
202
Posted By drl
Hi. In command mode d$ deletes to...
Hi.

In command mode d$ deletes to end-of-line, d0 deletes to beginning of line.

They are not quite symmetrical, d$ deletes the character under the cursor, d0 does not, but my fingers got used...
1,970
Posted By drl
Hi. There is a grep work-alike written in...
Hi.

There is a grep work-alike written in perl at https://fastapi.metacpan.org/source/BDFOY/PerlPowerTools-1.013/bin/grep which implements the -w option:
-w Matches must start and end at...
4,038
Posted By drl
Hi. Not an answer, but for those who (like...
Hi.

Not an answer, but for those who (like me) have not seen or used Platypus:
Description: Platypus is a program for creating application wrappers
around scripts,...
3,647
Posted By drl
Hi. Noting that in this specific dataset,...
Hi.

Noting that in this specific dataset, the "#" is essentially the record separator, we can add a dummy record at the top, and use some of the features of a flexible alternative sorting code...
Forum: What is on Your Mind? 05-12-2019
7,820
Posted By drl
Hi, Neo. I liked it. I tried it on a...
Hi, Neo.

I liked it. I tried it on a non-extant page and it worked. I tried a link and it worked.

I think the Oooooops! text is light compared to the 404 text's size and brightness.
...
1,406
Posted By drl
Hi. A few thoughts on this from a person who...
Hi.

A few thoughts on this from a person who does not know much about FASTA-format files. My impression is that the sequence after the >ID line often spans many lines. There are some utilities...
855
Posted By drl
Hi. Here is a solution that uses a single...
Hi.

Here is a solution that uses a single "master" paste with a created list of cut process substitution commands:
#!/usr/bin/env bash

# @(#) s1 Demonstrate creation and execution of...
201
Posted By drl
A meta-answer with a non-standard, local utility
Hi.

I think segment 41-50 is supposed to be skipped: 1-20 ,21-30 ,31-40 ,51-60 ,61-100

Our shop needed something like this long ago so we created a split utility, r3split, to handle these...
168
Posted By drl
Hi. Assuming sample data is on file z5; code...
Hi.

Assuming sample data is on file z5; code is on file z6: changing Jim's code to this:
awk ' $3 > $4 {printf( "%s\t%s\t%s\t%s\n", $1, $2, $4, $3); next}
{print $0}' z5
produces this...
399
Posted By drl
Hi. Here are the important parts of a script...
Hi.

Here are the important parts of a script that seems to do what you wish (including a sample data file). It runs twice, once considering the underscore as a separator, then as a character:
#...
196
Posted By drl
Hi, Tanu. If you were to execute perldoc -f...
Hi, Tanu.

If you were to execute perldoc -f sort, you would find explanation:
sort SUBNAME LIST
sort BLOCK LIST
sort LIST
In list context, this sorts the LIST and...
269
Posted By drl
Hi. There are some codes that understand...
Hi.

There are some codes that understand HTML, such as lynx, elinks. For example, here is elinks extracting all the stuff in the sample HTML, and then, step-by-step, tables are refined, with sed,...
298
Posted By drl
Related, somewhat off-topic
Hi.

I was reading an article in the AI issue of IEEE Spectrum. Perhaps it will be of interest ... cheers, drl

Can Machine Learning Teach Us Anything? - IEEE Spectrum...
362
Posted By drl
Hi, Robert Good that you have a solution. I...
Hi, Robert

Good that you have a solution. I am going to present another solution, one that does not use awk. I definitely recommend that you learn awk, especially if you are going to deal with...
Showing results 1 to 25 of 367

 

Featured Tech Videos

All times are GMT -4. The time now is 09:36 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy