Search Results

Search: Posts Made By: drl
395
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...
Forum: Shell Programming and Scripting 2 Weeks Ago
593
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
4,356
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
4,356
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...
945
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:...
275
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...
932
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,702
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,379
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.
...
988
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
2,648
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.
...
4,337
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...
1,082
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...
244
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
2,513
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...
620
Posted By drl
Hi. If you are going to be dealing with...
Hi.

If you are going to be dealing with dates frequently, you might want to look at a package called dateutils. It is available on several platforms. I use Debian, but it's available even on...
2,672
Posted By drl
Minor comment
Hi.

I seem to recall that Apple will ship zsh as the default shell in the future, so perhaps they don't really care about the old bash version (but will likely supply bash to avoid breaking extant...
Forum: Programming 08-28-2019
7,615
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
7,615
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...
1,213
Posted By drl
Hi. An Alternative: paste -s -d "\t\n" z1 ...
Hi.

An Alternative:
paste -s -d "\t\n" z1
producing:
Source: x.x.x.x Destination: x.x.x.x
Source: x.x.x.x Destination: x.x.x.x
Source: x.x.x.x ...
1,346
Posted By drl
Hi. echo "1C 50 A9 D3 8B B0 24 9C 14 1C 50 A9...
Hi.
echo "1C 50 A9 D3 8B B0 24 9C 14 1C 50 A9 D3 8B B0 24" |
fold -12 |
sed '2~2a\
'

producing:
1C 50 A9 D3
8B B0 24 9C

14 1C 50 A9
D3 8B B0 24


Where the GNU extension '2~2'...
2,478
Posted By drl
Hi. In solving problems, I find it most...
Hi.

In solving problems, I find it most useful to search for solutions before inventing my own. I keep a list of notes and sources for command-line-processing, posted below. You may want to...
Forum: What is on Your Mind? 07-24-2019
7,161
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
7,161
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
Forum: Programming 07-04-2019
7,536
Posted By drl
Also posted (and currently on hold) at scripting...
Also posted (and currently on hold) at scripting - Python script to Grep strings from input file and output in csv format - Unix & Linux Stack Exchange...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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