Search Results

Search: Posts Made By: drl
11,129
Posted By drl
Hi. This might possibly be done for the...
Hi.

This might possibly be done for the range of numbers noted by parsing the numbers, inserting 2 zeros, and so avoiding any arithmetic whatsoever -- just a thought ... cheers, drl
182,125
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...
182,125
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 ;...
7,428
Posted By drl
Hi ... txt2html is also available in some...
Hi ... txt2html is also available in some repositories and at github ... cheers, drl
txt2html convert plain text file to HTML (man)
Path : /usr/bin/txt2html
Version : 2.53
Length : 975...
58,191
Posted By drl
Hi, kb. Thanks. As I noted, it did install...
Hi, kb.

Thanks. As I noted, it did install and execute correctly on a more recent system, so I'll need to use it there. Thanks for your time and effort ... cheers, drl
5,403
Posted By drl
Hi. Brace expansion with variables will work...
Hi.

Brace expansion with variables will work correctly with ksh and zsh ... cheers, drl

On a system like:
OS, ker|rel, machine: Linux, 3.16.0-7-amd64, x86_64
Distribution : Debian 8.11...
14,932
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...
6,294
Posted By drl
Hi. I've often wondered why there hasn't...
Hi.

I've often wondered why there hasn't been a utility (or mode in join) to do this kind of operation -- a self-join, as it were ... cheers, drl
5,932
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
58,191
Posted By drl
Hi, kbrazil. Thanks for the update. I ran...
Hi, kbrazil.

Thanks for the update.
I ran this to update (as I had done earlier to do the initial install):
pip3 install --upgrade jc
but this is what I got:
No files/directories in...
5,094
Posted By drl
Hi. The code is available in some...
Hi.

The code is available in some repositories (I just installed it in a VM for Debian Buster), and also at github, as newer versions 0.4.3 .. 0.4.7:
dateutils.dsort Sort contents of FILE...
32,630
Posted By drl
Hi. I am with MadeInGermany and others in...
Hi.

I am with MadeInGermany and others in trying to discourage use of csh/tcsh for scripting.

However, if you must use it, see the (old) references below. Search on Google, at publisher...
Forum: What is on Your Mind? 01-12-2020
11,474
Posted By drl
Hi. This is the logo that was designed ......
Hi.

This is the logo that was designed ... cheers, drl
http://ccrz.ch/wp-content/uploads/2017/08/CCRZ_Q1_PPM_logo_1.jpg
Forum: What is on Your Mind? 01-11-2020
11,474
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...
6,363
Posted By drl
Hi. You can find some of your errors by...
Hi.

You can find some of your errors by using shellcheck:
In <yourfile> line 7:
if ["$DAYOFWEEK" == 1];
^-- SC1009: The mentioned parser error was in this if expression.
^-- SC1073:...
2,667
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...
5,432
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...
8,582
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...
24,706
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.
...
3,000
Posted By drl
Hi. Using pcregrep: pcregrep -o1...
Hi.

Using pcregrep:
pcregrep -o1 'status_(.*?)[.]log' <( ls *status* )
The -o1 extracts parentheses group number 1.
and will produce:
INTPHLK11
INTPHLK21
OSMPRD1
SOACAT1
cgsm1
cgsm2...
Forum: What is on Your Mind? 11-03-2019
9,335
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.
...
58,191
Posted By drl
Hi, kbrazil. Thanks for the code. I installed...
Hi, kbrazil.
Thanks for the code. I installed it, tried it out, and it worked as expected.

For your next rev, I suggest:
jc [-p] -- "command"
So that jc -- "du" would run the du command from...
4,665
Posted By drl
Hi. We use a variety of platforms, so we...
Hi.

We use a variety of platforms, so we often need to identify the one on which we are working. Here is a sampling showing the use of:

GNU script config.guess,
file /etc/issue,
standard...
7,605
Posted By drl
Hi. In the interest of completion, here is...
Hi.

In the interest of completion, here is one solution: use pr. The data file had 54 lines in it, so I used a same-length data file with this script:
#!/usr/bin/env bash

# @(#) s1 ...
Forum: OS X (Apple) 10-26-2019
10,158
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...
Showing results 1 to 25 of 500

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