Search Results

Search: Posts Made By: vgersh99
113
Posted By kbrazil
Fun with terminal plotting JSON data at the command line
One of the great thing about unix is the ability to pipe multiple programs together to manipulate data. Plain, unstructured text is the most common type of data that is passed between programs, but...
325
Posted By MadeInGermany
Can be done as a { } group. (Note: there must be...
Can be done as a { } group. (Note: there must be a semicolon or newline before the closing brace! And of cause spaces next to the [ ] { } )
if [ -f ./file2 ] && [ -f ./file3 ] && { [ -f ./file1 ]...
223
Posted By MadeInGermany
The latter suggestion is portable. Once defined...
The latter suggestion is portable.
Once defined as a function it becomes handy:
rightpad0() { printf "%s%0$((${1}-${#2}))d\n" "${2}"; }

rightpad0 9 2457
245700000
223
Posted By RudiC
Or printf "%s%0*d\n" ${X} $((9-${#X})) 0 ...
Or
printf "%s%0*d\n" ${X} $((9-${#X})) 0
245700000
printf "%s%0$((9-${#X}))d\n" ${X}
245700000
309
Posted By RudiC
Nice approach indeed! Could be curtailed to ...
Nice approach indeed!
Could be curtailed to
sed -r "/'($(paste -sd\| file2))'/s/^C//" file1, including the item list file as well.
402
Posted By RudiC
You are right, that "feature" should not be taken...
You are right, that "feature" should not be taken for granted, but both my linux and FreeBSD versions have it. Still your caveat can / should be kept in mind.
696
Posted By MadeInGermany
PAE was invented for 32bit kernels, in order to...
PAE was invented for 32bit kernels, in order to address more than 4GB.
It allowed many apps to consume more than 4GB, but I have my doubts that a single app could address more than 4GB.

PAE...
531
Posted By MadeInGermany
There are several further mistakes in your...
There are several further mistakes in your script:
Text message in MEM_LOAD (that you cannot compare with a numeric value),
two useless code lines about PROC and CPU_LOAD,
useless use of echo,...
707
Posted By rbatte1
Why single quotes anyway? They stop...
Why single quotes anyway? They stop interpretation of the string quoted. If you want to pass something that changes, how about one of these:-ssh $i "systemctl is-enabled ${j}"; # No...
Forum: What is on Your Mind? 4 Weeks Ago
667
Posted By Neo
UNIX.com End of Year (EOY) Report (2019)
Here is a quick EOY report for 2019.

2019 has been a year of "downward trend reversal" for UNIX.com. In fact, if we compare total Google search impressions from the peak days in December 2019...
Forum: Shell Programming and Scripting 4 Weeks Ago
1,289
Posted By Scrutinizer
It appears that it has been implemented in the...
It appears that it has been implemented in the system's regex engine, but that it does not work with globbing. On Linux, in bash 4 compare:
$ touch Miraré
$ for file in M*; do if [[ $file ==...
152
Posted By RudiC
Try alsoawk ' NR==FNR {PAT[$1,$2,$3] ...
Try alsoawk '
NR==FNR {PAT[$1,$2,$3]
next
}
{IX = $1
L1 = length ($1) + 1
$1 = $1 "|"
...
887
Posted By RudiC
Did you look into the helpful links at the bottom...
Did you look into the helpful links at the bottom of this page under "10 More Discussions You Might Find Interesting"?



Howsoever, for your first question, try


$ date --date='07/20/2019'...
Forum: What is on Your Mind? 11-29-2019
1,327
Posted By Neo
As a sidebar note: Simon was promoted to...
As a sidebar note:

Simon was promoted to Moderator because he has been working to insure the forum rules and guidelines are being followed (especially in the area of formatting and code tags) and...
Forum: What is on Your Mind? 11-28-2019
1,327
Posted By Neo
Please Welcome Simon Sweetman (Chubler_XL) to the Moderator Team
Happy Thanksgiving Holidays,

Today, I am happy to welcome Simon Sweetman (Chubler_XL) (https://www.unix.com/member_modal.php?u=302085178) to the Moderation Team to help provide us some important...
1,263
Posted By MadeInGermany
Framed, and hanging in my office.
Framed, and hanging in my office.
Forum: What is on Your Mind? 11-14-2019
2,298
Posted By Neo
Seems like the bulk of this MySQL performance...
Seems like the bulk of this MySQL performance issue is solved (fingers crossed).
Forum: What is on Your Mind? 10-30-2019
2,129
Posted By Neo
Please Welcome Dave Munro to the Moderator Team!
Dear All,

I am very pleased to announce that Dave Munro (gull04) (https://www.unix.com/member_modal.php?u=37127) is joining the Moderation Team, after being a very valuable member of UNIX.com for...
2,631
Posted By stomp
[TIP] Processing YAML files with yq
After the success of the jq - tool for parsing and manipulating JSON-Data someone wrote a tool called yq, which aims to be the same for YAML, what jq is for JSON. Seems to work fine. I'll definitely...
5
sed
222
Posted By MadeInGermany
That RE allows a zero-match of the surrounding...
That RE allows a zero-match of the surrounding spaces, so it behaves like the following

sed -n '/JOB/,/JOBSTEPREPORT/p' myFile
Anchors ^ and $ change everything: the following ensures there are...
Forum: What is on Your Mind? 10-05-2019
3,088
Posted By Neo
Please Welcome Nicki Paul to the Moderator Team!
Dear All,

I am very pleased to inform everyone that Nicki Paul (zxmaus) (https://www.unix.com/member_modal.php?u=302041733&modal=1) is joining the Moderation Team after a number of years away from...
1,104
Posted By RudiC
Please check your arithmetics for the SUM of...
Please check your arithmetics for the SUM of pat9.
I can't see where you comply with the specified weight of .25.


Tryawk -F, -vOFS=, '
NR == 1 {
$1 = sprintf ("%-25s", $1)
...
Forum: What is on Your Mind? 09-19-2019
3,507
Posted By Neo
YouTube: How to Use Code Tags and Format Posts @UNIX.com
By special request, and long overdue, I have updated our "code tags" video and so now we have:

How to Use Code Tags and Format Posts @UNIX.com in 4K (https://youtu.be/4BuPvWJV__k)
...
Forum: What is on Your Mind? 08-30-2019
4,049
Posted By Neo
Google Search Console - Mobile Usability - No Errors or Issues - New Milestone
For the first time in the history of the site Google Search Console (GSC) has unix.com showing "no mobile viewability errors". This is no small achievement considering the hundreds of thousand of...
Forum: What is on Your Mind? 08-18-2019
4,877
Posted By Neo
Please Welcome Peasant to the Moderation Team
Dear All,

Following our new policy for future forum moderators to have active LinkedIn profiles (and increase mod team diversity), please join me in congratulating our new addition to our mod...
Showing results 1 to 25 of 432

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