Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: drl
1,521
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
10,339
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...
10,339
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 ;...
2,380
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...
10,963
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
1,705
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...
2,391
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...
3,045
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
2,875
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
10,963
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...
1,947
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...
10,756
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
7,170
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
7,170
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...
3,442
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:...
596
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...
2,576
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...
3,117
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...
2,705
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.
...
1,525
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
5,348
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.
...
10,963
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...
2,118
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...
1,916
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
4,972
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

 

Featured Tech Videos

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