Search Results

Search: Posts Made By: Scott
Forum: What is on Your Mind? 12-27-2018
2,929
Posted By rbatte1
To me, the Kludge, Kludgie (or Cludge/Cludgie) is...
To me, the Kludge, Kludgie (or Cludge/Cludgie) is a Scottish word for the toilet. Does that help? Does IT just collect all the 'output' ?
Forum: OS X (Apple) 10-15-2018
32,597
Posted By Corona688
A quiet reminder that ksh93 is very rare, and...
A quiet reminder that ksh93 is very rare, and that shell isn't an efficient or readable language for mass computation. Carry on.

ksh93 also has date arithmetic.
3,559
Posted By MadeInGermany
Without an external command (paste) while read...
Without an external command (paste)
while read i <&3 && read j <&4
do
useradd "$i"
echo "$j" | passwd --stdin "$i"
done 3<file1 4<file2
5,583
Posted By lxdorney
Hi thank you very much for your time, is solved...
Hi thank you very much for your time, is solved now other way around.

to this link Auto-mounting USB storage with udev >> Axllent.org (https://www.axllent.org/docs/view/auto-mounting-usb-storage/)
Forum: What is on Your Mind? 09-11-2018
3,486
Posted By RudiC
I'm very grateful for the work you put in, Neo,...
I'm very grateful for the work you put in, Neo, and I wish I could join in helping, but my Web Development is non existing, be it JS, PHP, HTML, or CSS.

Still, I'm collecting some bits here and...
Forum: What is on Your Mind? 09-11-2018
3,486
Posted By joeyg
Appreciate all the work you do and have done. And...
Appreciate all the work you do and have done. And hope you have not misinterpreted any of my comments/questions "how do I do this now" or "where is that link now"?
Neither has been intended to take...
4,274
Posted By Aia
grep -q is more than just suppressing any output,...
grep -q is more than just suppressing any output, it will exist with success as soon as it finds a match, avoiding to continue searching any other lines in the file until it reaches the end of the...
6,954
Posted By vgersh99
awk '{ a[$0]} END{for (i in a) print i ORS}' RS=...
awk '{ a[$0]} END{for (i in a) print i ORS}' RS= my_file.fasta
or better yet:

awk '!a[$0]++' RS= ORS='\n\n' my_file.fasta
Forum: What is on Your Mind? 07-08-2018
58,605
Posted By Neo
Great. I may just move the "on click"...
Great.

I may just move the "on click" function to the "Code:" part of the tag, since that is not needed for cut and past since it is really outside the formal code tag.
Forum: What is on Your Mind? 06-29-2018
58,605
Posted By Neo
New Code Tags (Syntax Highlighting)
Hey,

Just added a new UserCP option so you can change the code tags to look like the code tags in this example (turn this on and off):

Note: I set the default to "SyntaxHighlighting" for...
19,576
Posted By bakunin
I can't offer you a (single) command but a...
I can't offer you a (single) command but a procedure how to do it - even with a standards-conforming (non-GNU) sed:

- First, save your pattern space to the hold space.

- Next, you use the...
1,864
Posted By Corona688
This is why you always do 'echo mv' on the first...
This is why you always do 'echo mv' on the first try. Better yet, take a backup before you do a batch rename. Consequences can be large.
1,387
Posted By Yoda
The reason is when you pipe the file to a while...
The reason is when you pipe the file to a while loop, it actually gets executed in a sub-shell:-
cat $1 | while read line
So the scope of the variable sum value is within the while loop. This is...
Forum: What is on Your Mind? 01-31-2018
5,238
Posted By Corona688
Has it ever been wildly popular? It's been...
Has it ever been wildly popular? It's been influential but that's not the same thing.

Much of that influence is from the BSD license. You can take anything you want, if you attribute (or,...
Forum: What is on Your Mind? 01-31-2018
5,238
Posted By drysdalk
Hi, Whilst there's no question that Linux is...
Hi,

Whilst there's no question that Linux is the dominant OS in the UNIX(ish) family, I don't personally think that the BSDs are going to go away any time soon.

For example, looking at...
Forum: What is on Your Mind? 01-31-2018
5,238
Posted By dodona
Are the BSDs dying?
Source (https://www.csoonline.com/article/3250653/open-source-tools/is-the-bsd-os-dying-some-security-researchers-think-so.html)

a quick google search making clear that this isn't really new, and...
2,417
Posted By drysdalk
Hi, There's no easy way to do what you want...
Hi,

There's no easy way to do what you want to do with find, or at least not based on a simple -type test. As you've previously been advised, an empty file is defined as a file containing 0 lines...
1,857
Posted By Don Cragun
This is cute... There is a comment in the...
This is cute...

There is a comment in the POSIX Standard's rationale for the simple commands section of the shell command language description that says:

But, I don't see anything in the...
3,269
Posted By bakunin
Interesting. To be honest i find the behavior of...
Interesting. To be honest i find the behavior of df -h much more annoying. Here is my PC:

# df -h
Filesystem Size Used Avail Use% Mounted on
udev 63G ...
Forum: Linux 12-20-2017
5,701
Posted By sunnysthakur
FIXED
I disabled NetworkManager and firewalld and use legacy network and iptables to get it working on CentOS7. Firewalld and NetworkManager are kind of wrappers which causes this issue.:b:
3,269
Posted By hicksd8
On Solaris 11 the only (initial) logon is the...
On Solaris 11 the only (initial) logon is the user account that you gave during the installation. You cannot login as root which, by default, is set as a role (NOT a normal user). By default, the...
5,237
Posted By RudiC
Simple sed approach: sed -n '/START/,/END/ {H};...
Simple sed approach:
sed -n '/START/,/END/ {H}; /START/ h; $ {g;p}' file
START
03:14:30 eee
03:15:30 fff
END
5,237
Posted By Don Cragun
You still haven't said why you can't use ed or ex...
You still haven't said why you can't use ed or ex for this. The following code is much simpler than anything you can do with awk or sed:
ed -s file.txt <<-"EOF"
?START?;/END/p
q
EOF
But, of...
7,800
Posted By MadeInGermany
For an easy substitution you can add a delimiter...
For an easy substitution you can add a delimiter at the beginning and another one at the end of the line, and delete them afterwards.
sed '
# add extra delimiters
s/^/|/
s/$/|/
# replace all...
4,668
Posted By bakunin
You always have something interesting to...
You always have something interesting to contribute, so: you're welome!



You noted some very good books and, yes, if we are talking shell programming they might be better places to look at...
Showing results 1 to 25 of 272

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