Search Results

Search: Posts Made By: jim mcnamara
5,287
Posted By jim mcnamara
IF you had mentioned your OS I could be sure of a...
IF you had mentioned your OS I could be sure of a better answer -
have you tried grep?

grep -A 10 -B 10 "CORRUPTION DETECTED" logfilename.log
is one way to it with many, but not all, OSes.
...
5,904
Posted By jim mcnamara
Based on this drwxr-xr-x 2 dbadmin dbadmin...
Based on this

drwxr-xr-x 2 dbadmin dbadmin 4096 Apr 21 09:44 2020-04-17
drwxr-xr-x 2 dbadmin dbadmin 4096 Apr 21 09:44 2020-04-16
drwxr-xr-x 2 dbadmin dbadmin 4096 Apr 21 09:44 2020-04-20...
4,721
Posted By jim mcnamara
D is a device wait. I don't remember old SunOS...
D is a device wait. I don't remember old SunOS having one, but OK, no problem, the result is the same - device not available or not online, etc. Both "real" and virtual I/O devices can cause this. ...
3,215
Posted By jim mcnamara
Try pgrep -l rpm | while read pid do ...
Try

pgrep -l rpm | while read pid
do
kill $pid
done
3,463
Posted By jim mcnamara
FWIW - Microsoft originally ran 2 OSes - Xenix...
FWIW - Microsoft originally ran 2 OSes - Xenix and DOS. Xenix was a UNIX clone and DOS later became Windows. It was a business decision to drop Xenix and go all Windows, just like going WSL2 is...
5,243
Posted By jim mcnamara
This: Process priority and control on AIX...
This:
Process priority and control on AIX (https://www.ibm.com/developerworks/aix/library/au-aixprocesscontrol/index.html)

Does not seem to list a "D" state for AIX. Maybe some of the extended...
5,243
Posted By jim mcnamara
I think that people's associations associations...
I think that people's associations associations for the the word 'zombie' get in the way of dealing with it. They are not supposed to be scary or a scourge on the face of the earth. Just an "oops"...
2,344
Posted By jim mcnamara
Optimization does not mean condensing several...
Optimization does not mean condensing several readable single commands into a less readable single line - which can be harder to maintain, say, in six months. When you have forgotten about it. And...
14,931
Posted By jim mcnamara
FWIW: Don't Use ZFS on Linux: Linus Torvalds -...
FWIW:
Don't Use ZFS on Linux: Linus Torvalds - It's FOSS (https://itsfoss.com/linus-torvalds-zfs/)

Torvalds will not allow Linux kernel inclusion of ZFS support because of Oracle's position on...
1,738
Posted By jim mcnamara
I think you need to specify a field separator as...
I think you need to specify a field separator as a comma.


Owner@Owner-PC ~
$ awk -F, '!a[$1]++' filename
ENSG00000003137,ENST00000001146
ENSG00000003402,ENST00000309955


Owner@Owner-PC ~...
5,089
Posted By jim mcnamara
To sort dates it works best to convert them to...
To sort dates it works best to convert them to epoch seconds - the number of seconds since Jan 1 970. This code adds an epoch time sorts based on the epoch time, then prints the original minus the...
5,852
Posted By jim mcnamara
It is a shorthand character class that mostly...
It is a shorthand character class that mostly expands to [ \f\t\n\v] -- it is shorthand for a character class, like \d and others

Explained here:.

Regexp Tutorial - Shorthand Character...
12,963
Posted By jim mcnamara
Suppose you wanted to count the number of times...
Suppose you wanted to count the number of times the word of occurs in a file


Owner@Owner-PC ~
$ cat filename
all of the kings of Norway

Owner@Owner-PC ~
$ grep -Fo 'of' filename |wc -l
2
7,963
Posted By jim mcnamara
MicroFocus COBOL is your very best ORACLE option....
MicroFocus COBOL is your very best ORACLE option. It specializes in supporting ORACLE db's. It also is highly compatible with mainframe COBOL.
This will be the relatively easy part, moving code...
7,032
Posted By jim mcnamara
(3,0) A parenthesis is a reserved symbol in...
(3,0) A parenthesis is a reserved symbol in bash, not a string.
"(3,0)" Try making it a string...
12,202
Posted By jim mcnamara
Can you boot from installation software - DVD,...
Can you boot from installation software - DVD, thumb drive?
Boot to run-level 1 which makes the console root and allows no other logins.

Example with run-level 1 boot on linux with GRUB2
...
Forum: HP-UX 10-20-2012
17,615
Posted By jim mcnamara
I assume you mean: use date command with another...
I assume you mean: use date command with another format --


date "+%Y-%m-%d %H:%M:%S"


The date format string starts with the + character, it does not show up in the output.
If you forget it...
6,889
Posted By jim mcnamara
I was not clear. You thought your locale was...
I was not clear. You thought your locale was messed up somehow, so I started at the beginning to debug it.
Looks okay. Next, tr has problems with equivlence classes

[aªáàâãäå]

This is the...
8,580
Posted By jim mcnamara
This standard library call: nftw (or ftw) IBM...
This standard library call: nftw (or ftw)
IBM Knowledge Center (https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.bpxbd00/rnftw.htm)

supports the find command traversing...
8,027
Posted By jim mcnamara
In bash on some systems it is a shell function: ...
In bash on some systems it is a shell function:

realpath () ...
Forum: Programming 02-18-2014
10,949
Posted By jim mcnamara
I'm confused. Is there no way to link your...
I'm confused. Is there no way to link your library code on each platform? That way it will always run wherever it is ported to. It is not clear to me if this is what you are asking.

You seem...
Forum: Programming 11-12-2019
20,638
Posted By jim mcnamara
The problem relates to memory management. The OS...
The problem relates to memory management. The OS sets an "end point" and a "start point" for a process working set (memory) when the process begins.

There are flavors of the malloc (also realloc)...
2,578
Posted By jim mcnamara
Your turn next: I got your awk code to run...
Your turn next:
I got your awk code to run against a dummy input file. I cannot see why your sample ran for you - however after fixing syntax I got an awk source file t.awk. t.lis is the file...
8,730
Posted By jim mcnamara
Plus, bash creates a subprocess (different from...
Plus, bash creates a subprocess (different from ksh) on the right side of a pipe, meaning any changes to variables in the statement on the right are not returned to the parent. This changed with...
5,125
Posted By jim mcnamara
what does ls -l sendmail.cf show? Has it...
what does ls -l sendmail.cf show? Has it changed recently? There should a default version of sendmail.mc you can compile and then substitute. If in doubt.

If it got changed you may want to...
Showing results 1 to 25 of 500

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