Showing results 1 to 25 of 500
Search took 0.13 seconds.
Search: Posts Made By: Don Cragun
Forum: Shell Programming and Scripting 1 Hour Ago
Replies: 5
Views: 58
Posted By Don Cragun
In addition to what Robin has already asked, one...

In addition to what Robin has already asked, one might note that there are no duplicate values in the second field in your sample input file. Is your real criteria for matching something like:

...
Forum: What is on Your Mind? 11 Hours Ago
Replies: 20
Views: 408
Posted By Don Cragun
Sorry, not Google Mail. I meant Yahoo Mail. See...

Sorry, not Google Mail. I meant Yahoo Mail. See screenshots below of a mail message in Yahoo Mail viewed in a tab in Safari and in macOS Mail in a window of its own. All of the underlined blue...
Forum: What is on Your Mind? 12 Hours Ago
Replies: 20
Views: 408
Posted By Don Cragun
I can see green and I can see purple (or...

I can see green and I can see purple (or magenta). So either one would be OK.

In the macOS Mail application and in Google Mail, links appear as (underlined) blue text; so I'd prefer blue. I'm...
Forum: What is on Your Mind? 13 Hours Ago
Replies: 20
Views: 408
Posted By Don Cragun
My old eyes didn't see any color difference...

My old eyes didn't see any color difference between the text in a link and text that is not in a link in either FireFox or Safari on macOS High Sierra (version 10.13.6) on a 2 year old or 4 year old...
Forum: What is on Your Mind? 13 Hours Ago
Replies: 20
Views: 408
Posted By Don Cragun
Guess where the link is in this paragraph... If...

Guess where the link is in this paragraph... If you find the link and follow it to post #3 in the thread...
Forum: What is on Your Mind? 22 Hours Ago
Replies: 20
Views: 408
Posted By Don Cragun
I think the request was to change the shape of...

I think the request was to change the shape of the cursor when hovering over the Thanks button at the bottom left corner of a post; not just when hovering over the user-info-area at the top right...
Forum: Shell Programming and Scripting 1 Day Ago
Replies: 2
Views: 383
Posted By Don Cragun
Is this a homework assignment? Homework and...

Is this a homework assignment? Homework and coursework questions can only be posted in this forum (https://www.unix.com/homework-coursework-questions/) under special homework rules...
Forum: Ubuntu 1 Day Ago
Replies: 6
Views: 735
Posted By Don Cragun
Maybe you'll want to fix the syntax error in your...

Maybe you'll want to fix the syntax error in your CIFS installation???
Forum: UNIX for Advanced & Expert Users 1 Day Ago
Replies: 4
Views: 289
Posted By Don Cragun
I repeat my question. Why isn't ntpd running on...

I repeat my question. Why isn't ntpd running on this client all of the time? Why is any application using NTP when it runs instead of the system running ntpd to keep its clock in sync all of the...
Forum: Shell Programming and Scripting 1 Day Ago
Replies: 6
Views: 337
Posted By Don Cragun
You said you want the MTBF for each node. The...

You said you want the MTBF for each node. The node 127.0.0.1 was always down (for all three times it appeared in the data in post #4 and for both times it appeared in the data in post #1).

If a...
Forum: UNIX for Advanced & Expert Users 2 Days Ago
Replies: 4
Views: 289
Posted By Don Cragun
Maybe a slightly different question will resolve...

Maybe a slightly different question will resolve your current problem... Why not run ntpd to keep your clock in sync with an NTP server? That should keep jumps in time to jumps of less than a...
Forum: Shell Programming and Scripting 3 Days Ago
Replies: 6
Views: 250
Posted By Don Cragun
Hi neha_suri06, If you want quick replies to...

Hi neha_suri06,
If you want quick replies to your queries, and have those replies have a good chance of woking in your environment, it is crucial that you always tell us what operating system you're...
Forum: Shell Programming and Scripting 4 Days Ago
Replies: 6
Views: 321
Posted By Don Cragun
I would expect echo '(1.8*$celsius+32)' | tr -d...

I would expect echo '(1.8*$celsius+32)' | tr -d '\n' | bc -l to give you the diagnostic message you showed us since bc input needs to be a text file and, by stripping off the <newline> character with...
Forum: What is on Your Mind? 6 Days Ago
Replies: 53
Views: 1,064
Posted By Don Cragun
I'm happy with the numbers in various colored...

I'm happy with the numbers in various colored circles around the avatar.

I'm still concerned about manually clearing confidential post counts by hitting the "Mark Forums Read" button. Hitting...
Forum: What is on Your Mind? 1 Week Ago
Replies: 53
Views: 1,064
Posted By Don Cragun
I can confirm that having one or more "new"...

I can confirm that having one or more "new" confidential posts causes my avatar to blink :) and that reading the "new" confidential posts does not cause my avatar to stop blinking. :(

I also note...
Forum: UNIX for Beginners Questions & Answers 1 Week Ago
Replies: 38
Views: 673
Posted By Don Cragun
By definition, a text file cannot contain NUL...

By definition, a text file cannot contain NUL bytes.

If the file you're reading contains pointers or other binary values. You need to really understand the format of the data you are processing...
Forum: What is on Your Mind? 1 Week Ago
Replies: 53
Views: 1,064
Posted By Don Cragun
I like the improvements you're making! I...

I like the improvements you're making!

I don't mind the blinking avatar, but a possible alternative would be to have icons appear that could be clicked on directly when alerts occur. For example...
Forum: UNIX for Beginners Questions & Answers 1 Week Ago
Replies: 4
Views: 218
Posted By Don Cragun
If you don't want to use dos2unix before...

If you don't want to use dos2unix before processing your input files, you can also build that code into your awk script:
awk '
{ sub(/\r$/, "")
}
a[$1]++ {
print $0, NR
}' file
Note that the...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 9
Views: 443
Posted By Don Cragun
If we go to post #1 in this thread and look at...

If we go to post #1 in this thread and look at the XLATE KEY, XLATE TABLE, and COM fields in your sample input, it is immediately obvious that your fields are not fixed width (i.e., they do not...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 19
Views: 379
Posted By Don Cragun
Thank you. .sh is not a shell. .sh is a...

Thank you.


.sh is not a shell. .sh is a common filename extension used on Windows systems to indicate that the contents of the file are a shell script. But, since you're using Red Hat Linux...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 19
Views: 379
Posted By Don Cragun
I asked you four questions. You answered only...

I asked you four questions. You answered only the fourth one.

Please answer the other three questions. Without a clear answer to the third question we don't stand a chance of being able to help...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 19
Views: 379
Posted By Don Cragun
What operating system are you using? What...

What operating system are you using?

What shell are you using?

What logic is used to determine that one test is dependent on another test?

Please show us the awk code that you have tried (in...
Forum: What is on Your Mind? 1 Week Ago
Replies: 8
Views: 252
Posted By Don Cragun
Well done indeed! Congratulations RudiC.

Well done indeed!

Congratulations RudiC.
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 4
Views: 431
Posted By Don Cragun
In case "appropriate format string" isn't...

In case "appropriate format string" isn't obvious, note that it depends on what output you're trying to produce. If you want floating point numbers to be rounded to the nearest integer, use %.0f. ...
Forum: Shell Programming and Scripting 1 Week Ago
Replies: 5
Views: 242
Posted By Don Cragun
This will work if you're using GNU awk. But,...

This will work if you're using GNU awk.

But, according to the standards, the results are unspecified if the value assigned to RS is more than one character. On most BSD- and UNIX-systems, awk...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 01:43 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?