Search Results

Search: Posts Made By: Scrutinizer
146
Posted By RudiC
How about (not THORUOGHLY tested!): $ L1=( a...
How about (not THORUOGHLY tested!):

$ L1=( a b c d i f gg )
$ L2=( 1 2 13 )
$ for i in ${!L1[@]}; do echo ${L1[i]}${L2[i%${#L2[@]}]}; done
a1
b2
c13
d1
i2
f13
gg1
Pipe through paste -sd"...
345
Posted By MadeInGermany
Can be done as a { } group. (Note: there must be...
Can be done as a { } group. (Note: there must be a semicolon or newline before the closing brace! And of cause spaces next to the [ ] { } )
if [ -f ./file2 ] && [ -f ./file3 ] && { [ -f ./file1 ]...
238
Posted By Aia
One way in Bash could be: n=$(printf "%-9s"...
One way in Bash could be:
n=$(printf "%-9s" 2457)
printf "%s\n" ${n// /0}
245700000
Forum: What is on Your Mind? 1 Week Ago
419
Posted By Neo
Vintage!!! Jimmy Page/Jeff Beck/Eric Clapton-Stairway to Heaven
You must watch this music video.

Jimmy Page/Jeff Beck/Eric Clapton-Stairway to Heaven (https://youtu.be/wKlEVtA_TGQ)

https://youtu.be/wKlEVtA_TGQ

Long before there was surveillance...
Forum: What is on Your Mind? 2 Weeks Ago
149
Posted By Neo
2020 - Such a great year for everyone is here! ...
2020 - Such a great year for everyone is here! Live long and prosper!

7952
Forum: What is on Your Mind? 2 Weeks Ago
652
Posted By Neo
Similar Threads for Man Pages - In Development
FYI,

I have been quietly updating the man page database adding "similar threads" for man pages.

STEP 1: Full Text MySQL DB Search Matches

The first step, after creating the DB columns, was...
693
Posted By RudiC
Even if the file is moved between file systems,...
Even if the file is moved between file systems, there should not be a problem as long as the file is kept open. Even though the file and it's contents ARE moved by the mv command, the OS keeps the...
Forum: Shell Programming and Scripting 2 Weeks Ago
704
Posted By nezabudka
Hi look at this way declare -i...
Hi
look at this way
declare -i AnzahlUeberstunden
AnzahlUeberstunden=$(date -d "$JAHR-$MONAT-$TAG $ArbeitEnde" +%s)-$(date -d "$JAHR-$MONAT-$TAG $NormalesArbeitsEnde" +%s) #"tags" are not needed...
Forum: What is on Your Mind? 4 Weeks Ago
683
Posted By Neo
UNIX.com End of Year (EOY) Report (2019)
Here is a quick EOY report for 2019.

2019 has been a year of "downward trend reversal" for UNIX.com. In fact, if we compare total Google search impressions from the peak days in December 2019...
971
Posted By RavinderSingh13
Hello kshitij, Could you please try...
Hello kshitij,

Could you please try following. Written and tested with GNU awk and GNU sort.


awk '
/^[0-9]+/{
val=$NF
}
{
print val "@" $0
}' Input_file |
sort -t'@' -nrsk1,1 |...
721
Posted By foad
It is quite simple: you need a (recursive) parser...
It is quite simple: you need a (recursive) parser for this, the same way the language is interpreted (i suppose?) by one. I suggest to retrieve your yacc utility and start writing...


If you are...
Forum: Web Development 11-09-2019
2,539
Posted By Neo
302 Redirects Issues Effected Google Search Console (GSC) Fixed - DBSEO Goto Rewrite Problems Solved
Finally!

Yesterday I FINALLY figured out why Google Search Console (GSE) was showing so many pages with 302 redirects in our link budget. For over a year, I thought this issue was relate to...
Forum: OS X (Apple) 10-26-2019
2,013
Posted By drl
Hi. Thanks to Scrutinizer for starting this...
Hi.

Thanks to Scrutinizer for starting this (and possibly to wisecracker for an earlier note).

My collection of links is below, in no specific order of usefulness.

My current interest in...
2,661
Posted By stomp
[TIP] Processing YAML files with yq
After the success of the jq - tool for parsing and manipulating JSON-Data someone wrote a tool called yq, which aims to be the same for YAML, what jq is for JSON. Seems to work fine. I'll definitely...
Forum: What is on Your Mind? 10-11-2019
2,816
Posted By Neo
Have changed to "DarkGreen" for the time being. ...
Have changed to "DarkGreen" for the time being. Magenta was giving me a headache LOL . DarkOrange, Purple, Indigo and Navy did not seem to work out as well as DarkGreen.
Forum: What is on Your Mind? 10-05-2019
3,104
Posted By Neo
Please Welcome Nicki Paul to the Moderator Team!
Dear All,

I am very pleased to inform everyone that Nicki Paul (zxmaus) (https://www.unix.com/member_modal.php?u=302041733&modal=1) is joining the Moderation Team after a number of years away from...
Forum: What is on Your Mind? 09-28-2019
3,240
Posted By Neo
CORS Vulnerability Report by Pankaj Kumar Thakur (Nepal)
Yesterday we kindly received a CORS security bug report from Pankaj Kumar Thakur (https://www.unix.com/member_modal.php?u=302183033&modal=1) (Nepal).

I have fixed the bug already and Pankaj has...
3,431
Posted By MadeInGermany
No, the awk default is to print the whole line if...
No, the awk default is to print the whole line if there is a true condition outside an { action } and not followed by an { action }.
Post#1 should work as intended.

I rather suspect that the...
Forum: What is on Your Mind? 09-19-2019
3,526
Posted By Neo
YouTube: How to Use Code Tags and Format Posts @UNIX.com
By special request, and long overdue, I have updated our "code tags" video and so now we have:

How to Use Code Tags and Format Posts @UNIX.com in 4K (https://youtu.be/4BuPvWJV__k)
...
Forum: Programming 09-15-2019
867
Posted By RavinderSingh13
Regarding a GREAT site for understanding and Visualizing regex patterns.
Hello All,

While googling on regex I came across a site named Regulex Regulex´╝ÜJavaScript Regular Expression Visualizer (https://jex.im/regulex/#!flags=&re=%5E(a%7Cb%7Cc)(%5B%5E%40%5D*)%40(.*))
I...
2,784
Posted By MadeInGermany
As a professional you should expect the...
As a professional you should expect the unexpected.
What happens if the read fails or the "inet" is not found?
The following ends the loop if the read fails.
while
read inet ip &&
[ "$inet"...
1,185
Posted By rdrtx1
[[:digit:]]E[[:digit:]]
[[:digit:]]E[[:digit:]]
1,267
Posted By Don Cragun
I don't know of any OS that randomly picks the...
I don't know of any OS that randomly picks the next PID to use when creating a new process. But, it is theoretically possible to do it that way.

Most of the systems I have worked on have a...
1,593
Posted By Don Cragun
You might note that the suggestion in post #5 in...
You might note that the suggestion in post #5 in this thread invokes awk (using only standard awk features) once and sort twice producing both of the requested sorted outputs. Unlike some of the...
Forum: What is on Your Mind? 06-20-2019
6,676
Posted By Neo
A Shout-Out to Gareth Watts and pinfinder
A friend of my lost her restrictions (screen time) passcode on her iPhone. She was very reluctant to try to wipe her phone, which is the recommended solution.

Saving to backup would not have...
Showing results 1 to 25 of 500

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