Search Results

Search: Posts Made By: Corona688
384
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 $?
332
Posted By mohtashims
Thank you .... Works Perfect @Corona @RudiC.
Thank you .... Works Perfect @Corona @RudiC.
Forum: HP-UX 2 Weeks Ago
752
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? 4 Weeks Ago
854
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...
1,644
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...
1,522
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...
1,007
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. ...
2,143
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...
1,105
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...
1,955
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.
1,048
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:
Forum: Linux 07-29-2019
1,862
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...
1,956
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...
Forum: OS X (Apple) 07-20-2019
1,347
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:
...
Forum: OS X (Apple) 07-19-2019
1,347
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...
1,358
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
131
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
131
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...
345
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.
409
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
386
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...
345
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...
Forum: Web Development 04-17-2019
1,243
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.
Forum: Web Development 04-17-2019
1,243
Posted By Neo
I generally use location='' like Corona688...
I generally use location='' like Corona688 suggested and not location.replace(). You might also consider location.href='' which tend to use as well.

The main difference between location.href and...
906
Posted By bmk123
Thanks,i am going to use SSH to get the file...
Thanks,i am going to use SSH to get the file creation time.
and it is working fine. Thanks a lot.
Showing results 1 to 25 of 500

 

Featured Tech Videos

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