Search Results

Search: Posts Made By: Corona688
2,198
Posted By cmccabe
I found the error in the script... thank you :).
I found the error in the script... thank you :).
78,361
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...
10,956
Posted By mohtashims
Thank you .... Works Perfect @Corona @RudiC.
Thank you .... Works Perfect @Corona @RudiC.
1,828
Posted By MadeInGermany
My bad, bash does not have $status. It is zsh...
My bad, bash does not have $status.
It is zsh that has $status as a synonym for $?
Forum: HP-UX 10-01-2019
8,436
Posted By MadeInGermany
IMHO cron merges stdout and stderr by default. ...
IMHO cron merges stdout and stderr by default.
So there is no need for exec 2>&1.
Forum: What is on Your Mind? 09-18-2019
9,008
Posted By wisecracker
Exactly 1 year ago today, 18-09-2019...
This is mainly for Corona688, today's date 18-09-2019.
Remember from little acorns big trees grow a few months ago?
Well this is well on the way to 1000+ dls by the end of the year...
AMINET from...
Forum: Web Development 04-17-2019
11,401
Posted By Neo
Ravinder, you can also think about it like this: ...
Ravinder, you can also think about it like this:

window.location.href = '' simulates a mouse click

window.location.replace() simulates an HTTP redirect

Hope this helps.
8,340
Posted By sdosanjh
Thank you Corona688 That worked. but after...
Thank you Corona688
That worked. but after little tweak. separated failures and Success in 2 different files and added <br> tag in the failure file that will highlight the failures first in the...
89,868
Posted By Chubler_XL
Nice idea Corona668 . I don't have access to...
Nice idea Corona668 .

I don't have access to MacOS, I'm amazed the most recent releases ship with a 12 year old shell (whats going on there). Checking the exit status of read after the stty...
4,282
Posted By Chubler_XL
ls will change the time column format depending...
ls will change the time column format depending on the age of the file eg:

-rw-r--r-- 1 root root 89 Aug 29 12:08 booking
-rw-r--r-- 1 root bin 0 Oct 21 2016 basic.log

do you want this in...
Forum: OS X (Apple) 07-19-2019
23,366
Posted By hicksd8
Like MadeInGermany, I'm not a MAC user either so...
Like MadeInGermany, I'm not a MAC user either so I'm now going to talk generic Unix/Linux only. You will need a MAC expert to guide you if you want to use anything I'm going to say now.

Many...
58,812
Posted By bodisha
Thanks to all that replied! Yes the OS...
Thanks to all that replied! Yes the OS mattered... I was on CentOS 7 and the filesystem was mounted with an option known as "relatime". Which only seems to record atime in 3 different instances. ...
25,666
Posted By Chubler_XL
Love that solution Corona688 but the MIN and MAX...
Love that solution Corona688 but the MIN and MAX tests and the loop break feel awkward.

Bash makes it hard without an abs() function, I was forced to use ${A#-} in it's place, but, in my...
3,280
Posted By Don Cragun
Hi Corona688, That might be true in some...
Hi Corona688,
That might be true in some implementations. (And the BSD based awk on MacOS Version 10.14.5 does work that way.) However, the description of the awk RS variable in the standards is:
4,975
Posted By Don Cragun
Are you going to tell us that: if [[ $GAPNUM...
Are you going to tell us that:
if [[ $GAPNUM -ge 5 ]] then
isn't your code either?

There are at least two problems here that don't match with your description. If $GAPNUM expands to 0 as you...
15,588
Posted By userguy
Thanks everyone. I was able to run it with -B...
Thanks everyone. I was able to run it with -B option which is to execute in a separate file.
Forum: Linux 07-29-2019
18,187
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...
Forum: OS X (Apple) 07-20-2019
23,366
Posted By Neo
Here is an OSX man page for clri...
Here is an OSX man page for clri (https://www.unix.com/man-page/osx/8/clri/)

https://www.unix.com/man-page/osx/8/clri/

Also available as an OpenDarwin man page:
...
4,613
Posted By Perlbaby
Thanks Corona688 . I created a sub query and...
Thanks Corona688 . I created a sub query and called separately for those 2 columns and it worked . Thank you for suggestion :-) Cheers
1,773
Posted By anbu23
$ awk ' { for(i=1;i<=NF;i++) print i, $i } ' file...
$ awk ' { for(i=1;i<=NF;i++) print i, $i } ' file | sort | awk ' { print $2 } '
1
A
X
2
B
Y
3
C
Q
4
E
M
5
1,773
Posted By TAlcock
Thanks a lot Corona688, that has done exactly...
Thanks a lot Corona688, that has done exactly what I wanted!

Jim, that's not quite the format I wanted. If I have:
1 2 3 4 5

A B C E

X Y Q MWhat I actually want is:

1
A
X
2
B
Y...
1,080
Posted By richa_240889
Can I apply this logic to more than one input...
Can I apply this logic to more than one input file at a time??

--- Post updated at 05:07 PM ---

It is working now ., Thank you for help.
3,149
Posted By MadeInGermany
For a simple concatenation of the lines, consider...
For a simple concatenation of the lines, consider paste
paste file1 file2More flexible is the shell
while read L1 <&3 && read L2 <&4
do
echo "$L1 #### $L2"
done 3< file1 4< file2
2,896
Posted By locoroco
Answering my own question. Here I have chosen to...
Answering my own question. Here I have chosen to scale from height. It is also possible to scale from width.




height=$(ffprobe -v quiet -show_entries stream=width,height -of...
1,080
Posted By RudiC
The result you get is exactly as specified -...
The result you get is exactly as specified - sorted by field 1 (all lines identical), then field 3. I don't see column 2 sorted - it's just random, as its results are unspecified. To keep the...
Showing results 1 to 25 of 500

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