Search Results

Search: Posts Made By: Don Cragun
118,580
Posted By Corona688
BASH allows you to use the basic TTY properties...
BASH allows you to use the basic TTY properties to establish timeouts and read minimums:

#!/bin/bash

# Timeout is 1/10 of a second, minimum read is 0 characters
stty -icanon min 0 time 1
...
5,263
Posted By rdrtx1
so, fuz or fuzzyanimals (or any string in...
so, fuz or fuzzyanimals (or any string in between) will all evaluate "cat dog"? Why not just use fuz?
Forum: What is on Your Mind? 08-20-2019
13,530
Posted By Peasant
Thank you for your kind words. I will do my...
Thank you for your kind words.

I will do my best to justify the trust given here and on linkedin.

Regards
Peasant.
5,775
Posted By gull04
Hi, If you would like to be more...
Hi,

If you would like to be more restrictive, this can be done in a more granular fashion using setfacl where you can give individual users the level of access required on individual file....
28,853
Posted By MadeInGermany
The duplicates are removed because of the...
The duplicates are removed because of the associative (string-indexed) array o[ ].
If the string $(NF-1) occurs the second time it defines the same array element again.
You can make it visible by...
Forum: Fedora 08-05-2019
11,749
Posted By bakunin
There are a few restrictions in place you may...
There are a few restrictions in place you may want to know about:

Using the DOS partitioning schema allows only for 4 (primary) partitions. It is possible to create extended partitions but i...
4,704
Posted By apmcd47
So basically you are asking, "is my login shell...
So basically you are asking, "is my login shell bash or ksh?" And if there is no bash on your system it will be ksh, because that is the default, else you will have changed it by the time your...
Forum: Linux 07-29-2019
21,648
Posted By wisecracker
IBM Code Page 437...
Hi all...

Reference this URL:
https://www.unix.com/unix-for-beginners-questions-and-answers/282400-lower-ascii-characters.html#post303037272

Researching in google for an answer showed the...
10,313
Posted By bakunin
A "mail" is basically a (raw) text document, like...
A "mail" is basically a (raw) text document, like an ASCII file. You cannot "format" it with markup.

There is the MIME standard that allows mail to contain (several) parts which are not text. This...
Forum: What is on Your Mind? 07-23-2019
10,038
Posted By hicksd8
Business origins - MalWareBytes - interesting read
Interesting to read about the origin of the MalWareBytes company.

Link from BBC Business news:

'I kept my multimillion dollar business secret' - BBC News...
11,893
Posted By MadeInGermany
Because they are only for bash, not for other...
Because they are only for bash, not for other programs, I would not export them.
Then they must be redefined with every start of an interactive bash - that means .bashrc is the correct location.
11,893
Posted By apmcd47
Further to Neo's and Don Cragun's comments, the...
Further to Neo's and Don Cragun's comments, the variables used in your example are shell-specific variables and therefore do not need to be exported.

Andrew
251,797
Posted By Neo
Supplementary info, from a bash-related man page:...
Supplementary info, from a bash-related man page:



See also:


https://www.unix.com/man-page/redhat/1/shopt/
https://www.unix.com/man-page/centos/1/shopt/


FWIW:

mysql> select...
7,663
Posted By MadeInGermany
/var/run/ is supposed to be writable and...
/var/run/ is supposed to be writable and volatile: to be cleaned during system boot, or an in-memory file system (e.g. tmpfs).
The daemon process should create the pidfile, and remove it when it is...
Forum: Solaris 07-19-2019
44,305
Posted By jlliagre
I would recommend to avoid doing it. If you...
I would recommend to avoid doing it. If you properly tell Solaris where to install itself, i.e. a free primary partition, existing file systems and data stored on other primary partitions won't be...
6,637
Posted By wisecracker
Simple Scientific calculator for ADE, the UNIX environment for the AMIGA A1200(HD).
ADE is a UNIX environment for the ancient AMIGA A1200. By default this does NOT have the 'bc' command line calculator.
Although I did a DEMO code to create a C source and compile it under python...
4,370
Posted By Scrutinizer
Yes that is correct, #3 uses exact strings, so it...
Yes that is correct, #3 uses exact strings, so it correctly identifies the right field, and the sub() in itself isn't the problem either, since iteration occurs over the fields and not over the key...
4,370
Posted By MadeInGermany
In post #3, isn't if($i in A) ...
In post #3, isn't
if($i in A)
$i=A[$i]
more correct?
--
I see now, awk will reformat the line, substituting the FS characters with spaces.
Forum: AIX 06-08-2019
23,808
Posted By RecoveryOne
@bakunin Hello! Yeah I was trying to walk Phat...
@bakunin Hello!
Yeah I was trying to walk Phat down the proper way as I looked at his other posts and (nothing against him at at all) he's a little green behind the ears.


Thanks for the...
Forum: AIX 06-08-2019
23,808
Posted By bakunin
@Phat: first off, you are receiving very good...
@Phat: first off, you are receiving very good advice from RecoveryOne, so i will not interfere with that and add some general information.

@RecoveryOne: great to see a fellow AIX-guy here! I was...
6,440
Posted By RudiC
Try also $ paste -sd"\t\n" file | sort -nt\"...
Try also
$ paste -sd"\t\n" file | sort -nt\" -k2 | tr $'\t' $'\n'
#INFO id="18 london" logo="http://lx.yy.zz
http://11.22.77
#INFO id="21 michigan" logo="http://mx.yy.zz
http://11.22.55
#INFO...
10,749
Posted By MadeInGermany
Supposed you only show $5 it is awk '{gsub(",",...
Supposed you only show $5 it is
awk '{gsub(",", "", $5); sum+=$5} END{print sum}' mylogfile.logThe gsub() returns the number of performed substitutions, not the result string. The result is stored...
11,082
Posted By vgersh99
Well, I did remember discussing something similar...
Well, I did remember discussing something similar in the past - here's the relevant thread (https://www.unix.com/shell-programming-and-scripting/206345-bourne-0-issues-when-sourcing-files.html).
...
Forum: AIX 05-22-2019
16,434
Posted By MadeInGermany
Of course your usage text is better. The...
Of course your usage text is better.
The original script is named "check_user_threads.sh" and that's what it did from the beginning. The procs measurement was added later, in a hurry, as Solaris...
Forum: What is on Your Mind? 05-02-2019
14,679
Posted By Scrutinizer
When I grew up I used to have long and...
When I grew up I used to have long and interesting conversations with the father of friend of mine who was a scientist, albeit not a strict climate scientist. He warned me that my generation and...
Showing results 1 to 25 of 500

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