Search Results

Search: Posts Made By: drl
283,177
Posted By drl
Hi. I sympathize with with your frustration....
Hi.

I sympathize with with your frustration. My work trail is littered with abandoned projects, and I have about 100 items on my current design / coding / testing / organizing list. Every now and...
283,177
Posted By drl
Hi. Perhaps I missed something, but...
Hi.

Perhaps I missed something, but variables are created/set when from a function:
#!/usr/bin/env bash

# @(#) s1 Demonstrate use of option "-g" in "declare".

LC_ALL=C ; LANG=C ;...
29,275
Posted By drl
Hi. I am a big fan of Virtual Machine...
Hi.

I am a big fan of Virtual Machine technology. Here is what I do:

On my main workstation I install a small, stripped-down (i.e. no Office, etc.) Linux distribution as a host -- I prefer...
11,541
Posted By drl
Hi. See also several tables of features in...
Hi.

See also several tables of features in article Comparison of command shells - Wikipedia (https://en.wikipedia.org/wiki/Comparison_of_command_shells)

Best wishes ... cheers, drl
Forum: What is on Your Mind? 01-11-2020
18,229
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...
4,563
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...
11,489
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...
12,789
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...
34,484
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
11,932
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
15,204
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
152,241
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
152,241
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
13,249
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
13,249
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
2,579
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...
6,134
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...
20,292
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,...
6,440
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
17,327
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.
...
29,090
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...
121,070
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...
4,950
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...
2,259
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...
3,161
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:
#...
Showing results 1 to 25 of 371

 
All times are GMT -4. The time now is 07:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy