Search Results

Search: Posts Made By: sea
8,447
Posted By sea
I slightly modified your code... Was not my...
I slightly modified your code...
Was not my first attempt, just one of the... lets do this variant with the current variable... moments...

I have no idea WHY this works, because I wanted to...
8,447
Posted By sea
Dont do BOLD for code. Do CODE for code. ...
Dont do BOLD for code.
Do CODE for code.

And proper writing helps.... tSalary....
Or use grep -i ...

And btw...
Your code would not show the 'header' on occasion, but always...
Unless your...
8,447
Posted By sea
Something like this? [~/tmp] 0 $ awk '$4 <=...
Something like this?
[~/tmp] 0 $ awk '$4 <= 7000 {print}' "file.txt" | grep -v tSalary | sort -k 4

Thomas Manager Sales 5000
Jason Developer Technology 5500
Vicky DBA Technology 6000...
5,011
Posted By sea
Hi pulpwilkes and welcome to the forums Some...
Hi pulpwilkes and welcome to the forums

Some points missing:

Use code tags for code
What OS
What language / shell?


--- Post updated at 06:35 ---

Thanks for the updates.

Your...
64,148
Posted By sea
Thats why I prefer functions: bigger_value() {...
Thats why I prefer functions:
bigger_value() { # str1 str2
[[ ! 2 -eq $# ]] && echo "Usage: $FUNCNAME str1 str2" >&2 && return 1
echo ${#1} ${#2} | awk '{a=b=$1;($1>$2)?a=$2:b=$2;if(a*b){print...
64,148
Posted By sea
Why? In your 2nd example, the 2nd value is 50%...
Why?
In your 2nd example, the 2nd value is 50% of the first value. (${#text1} > ${#text2})
That is 100% accurate.

If you want to get only the bigger value, you need to switch the echo'd values,...
40,637
Posted By sea
Thank you on both points! :) So, I guess I...
Thank you on both points! :)

So, I guess I shall edit now all those blog posts using images?
(though I have had used this (wrong) method for all my posts with images, as far as I remember)
...
6,536
Posted By sea
When I see 2020-4 I assume the month april. ...
When I see 2020-4 I assume the month april.
When I see 2020-20, I wonder which month that should be.

Anyhow, I would phrase it like ; that you need a 'closer' endrange.
See, everything that...
65,111
Posted By sea
Sorry for that outbreak... But it's working...
Sorry for that outbreak...

But it's working now, thank you MIG & Rav, though, mostly because I droped 'those' catches alltogether...
Here's the full working pick:
pick() { # [-1 -2 -a -m] $LIST...
182,215
Posted By sea
Thank you Drl! MIG, Yes... I didnt post...
Thank you Drl!

MIG, Yes...
I didnt post this output before - because I was too upset to, therefor you could not have known, sorry for that.

[~/prjs/SWARM] 0 $ time ./runtime
.........SWARM...
38,809
Posted By sea
Hi You would have better chances with your...
Hi

You would have better chances with your code, if you would save lists (var="1 2 3")in the file.txt, rather than arrays.
In which case, your code would work just fine - as it is right now.
...
45,206
Posted By sea
Hello Try: LOG=/path/to/logfile TOTAL=0 ...
Hello

Try:
LOG=/path/to/logfile
TOTAL=0

grep Virus "$LOG" | while read _ _ NUM
do
TOTAL=$(( $TOTAL + $NUM ))
done

echo $TOTAL Viruses found

If that doesnt help, how about show...
44,508
Posted By sea
Oh dang, guess I cant just copy paste the...
Oh dang, guess I cant just copy paste the argument handling from the previous files...

Figured:


Guess this is this kind of an unspecified behaviour...
Welp, guess I'll need to work around...
182,215
Posted By sea
Currently listening: End of Line by Daft Punk,...
Currently listening: End of Line by Daft Punk, Tron Legacy OST

Oh what whall I say...
That "-> https://www.unix.com/shell-programming-and-scripting/283945-issue-writing-pipe-new-post.html <-" was...
13,453
Posted By sea
You're welcome. It's shorter and i'm...
You're welcome.



It's shorter and i'm lazy.
Also it only 'contains' 1 task per situation, so this is enough.
However, if there are more lines to be made for each situation, i'd go with a...
Forum: What is on Your Mind? 03-12-2020
20,074
Posted By sea
Those mail issues should have arised when...
Those mail issues should have arised when registering a user, not during a migration..
Smells like bad cooking.

Oh, so just 18 hours of user migration alone?
Geez, that sounds like alot of...
182,215
Posted By sea
Told you, just a couple of hours. :D Colors are...
Told you, just a couple of hours. :D
Colors are due tomorrow, with a screenshot as soon it works!

[sea@manjaro-desktop SWARM]$ time . ./runtime
........
TODO : swarm.sanity.env
................
182,215
Posted By sea
Blog-Thread: Creating a Shell Wrapper and Runtime Modifier (SWARM)
SWARM = Shell Wrapper and Runtime Modifier

But as a matter of fact, it's more like a Text User Interface framework for scripts.
Which was the original title (TUI) of the first split-up iteration...
Forum: What is on Your Mind? 03-11-2020
19,521
Posted By sea
wooohoooo :p :b: Good luck, seems promising...
wooohoooo :p :b:

Good luck, seems promising so far, cant wait! :)
3,389
Posted By sea
Yes, there would have been - and still is: ...
Yes, there would have been - and still is:
https://www.unix.com/homework-and-coursework-questions/

Welcome & hth :)
Forum: Linux 02-27-2020
7,359
Posted By sea
And here I come by thinking that swap nowadays...
And here I come by thinking that swap nowadays was used to save whats in the memory (ram) on hibernate/suspend.

At least on 'personal' machines that are not used as servers.

My 2 cents, please...
11,501
Posted By sea
YASSI - Yet Another Simple Script Installer (2020 edition)
Heyas

As someone said he'd like to see some more projects posts on the forum, so, here's one I hope is ready.
Not so much fun-fun, but practical ;)
I hope...

So, you have that small non-arch...
Forum: OS X (Apple) 01-21-2020
24,590
Posted By sea
Sorry for this beeing an off-topic quote but I...
Sorry for this beeing an off-topic quote but I never had the feeling that this forum was for elitists only.
Well, at least not back in 2016 up to my last activity here.

When I had joined the...
1,220
Posted By sea
Try: xfce4-terminal -e "nano example.txt" ...
Try:
xfce4-terminal -e "nano example.txt"

If you're on a system with multiple terminal-applications, multiple users with their own preferences, and if TUI is installed, you could also try:
...
2,143
Posted By sea
Your above example will fail (just like the...
Your above example will fail (just like the previous one).
Why do you put code in between cases?

After the ;;, the specific case is closed.
Before the *), no new case is opened.

Keep in mind,...
Showing results 1 to 25 of 218

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