Search Results

Search: Posts Made By: vgersh99
128
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 "|"
...
375
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? 2 Weeks Ago
606
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? 2 Weeks Ago
606
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...
751
Posted By MadeInGermany
Framed, and hanging in my office.
Framed, and hanging in my office.
Forum: What is on Your Mind? 4 Weeks Ago
1,412
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
1,345
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...
1,723
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
219
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
2,203
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...
894
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
2,589
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
3,086
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
3,884
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...
2,716
Posted By Neo
The trick of course if to create an array of JSON...
The trick of course if to create an array of JSON objects which are comma separated key, value pairs.

I don't think a tool like jq is designed to "think for you, as to how to create the array of...
1,204
Posted By rdrtx1
DB 3 is down.
DB 3 is down.
564
Posted By Chubler_XL
Be a little careful how you schedule jobs with...
Be a little careful how you schedule jobs with this concept, as only one job will run at a time and if another job is due and a long running job hasn't finished yet the other job will not be run. ...
Forum: What is on Your Mind? 07-28-2019
8,205
Posted By Neo
Always focused on the forum users, especially new...
Always focused on the forum users, especially new users, and improving services for our users (meaning those who come here to get answers to their questions); my code changes has resulted in an...
1,179
Posted By bakunin
Only recently i learned that NMON is available...
Only recently i learned that NMON is available for Linux too (i used to use it on AIX systems only). It has an interactive mode but also a daemon mode and its output can be analysed with the "NMON...
1,309
Posted By bakunin
I have seen a lot of bash < /some/script lately....
I have seen a lot of bash < /some/script lately. It seems to be a new Linux habit. In such a case the script is input and may not be displayed in a ps-output.

I hope this helps.

bakunin
1,575
Posted By Don Cragun
If you change: gawk '{l[$0]++} ENDFILE {for (i...
If you change:
gawk '{l[$0]++} ENDFILE {for (i in l) {if (l[i]==1) u++;t+=l[i]} print t, u, FILENAME; delete l; u=t=0}' *
to:
gawk '{l[$0]++} ENDFILE {for (i in l) {u++;t+=l[i]} print t, u,...
1,575
Posted By Don Cragun
You might note that the suggestion in post #5 in...
You might note that the suggestion in post #5 in this thread invokes awk (using only standard awk features) once and sort twice producing both of the requested sorted outputs. Unlike some of the...
1,575
Posted By MadeInGermany
The following variant correctly handles filenames...
The following variant correctly handles filenames with special characters:
for f in *; do printf "%s/%s lines are unique in file %s\n" $(sort "$f" | uniq -u | wc -l) $(wc -l < "$f") "$f"; donePost...
2,824
Posted By Don Cragun
Hi MadeInGermany, The original awk didn't have...
Hi MadeInGermany,
The original awk didn't have as many built-in variables as nawk. For example, if an original awk script used a variable named RS (which was not defined by the original awk but is...
3,018
Posted By Don Cragun
1) It looks like vgersh99 has already shown you...
1) It looks like vgersh99 has already shown you how to expand shell variables for use in awk. Note, however, that his code will append to your two output files; not replace them if they already...
Showing results 1 to 25 of 421

 

Featured Tech Videos

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