Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: jim mcnamara
823
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.
...
2,229
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...
2,295
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. ...
1,605
Posted By jim mcnamara
Try pgrep -l rpm | while read pid do ...
Try

pgrep -l rpm | while read pid
do
kill $pid
done
1,652
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...
1,793
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...
1,793
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"...
1,032
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...
2,467
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...
790
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 ~...
2,072
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...
2,775
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...
1,748
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
3,322
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...
3,467
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...
6,932
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
...
2,919
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...
3,226
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...
3,374
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 11-12-2019
9,059
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)...
1,380
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...
1,580
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...
1,963
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...
5,273
Posted By jim mcnamara
Use bc if (( $(echo "$num1 > $num2" |bc -l)...
Use bc

if (( $(echo "$num1 > $num2" |bc -l) )); then
echo "ok"
fi


bc does floating point comparisons, in bash you have to surround it with (( )) to get a boolean (true/false) result.
1,450
Posted By jim mcnamara
Try export run=$1 to make the variable visible...
Try export run=$1 to make the variable visible in child processes. I can't see a mistake in the syntax.
Showing results 1 to 25 of 500

 

Featured Tech Videos

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