Search Results

Search: Posts Made By: sea
283,162
Posted By sea
Allthough I've spent like 4 hours this morning...
Allthough I've spent like 4 hours this morning trying to get my USB (or at least the iso of it) reckognized by FreeBSD via a VM, I didnt manage it..
Another 4 hours later, around 4:30pm, I...
Forum: BSD 05-01-2020
34,065
Posted By sea
But that is the issue... I made the iso...
But that is the issue...
I made the iso -from/off- the USB drive.
(i changed the iso in the maintime to have only 5mb, rather than misleading swarm-iso of ~900mb as the freebsd iso is about 900mb...
Forum: BSD 05-01-2020
34,065
Posted By sea
Figured... Eventhough the REAL fs is msdosfs......
Figured...
Eventhough the REAL fs is msdosfs... I had to mount it as cd9660... because it got 'assigned' to /dev/cd0...

EDIT:
I wish.... sometimes I'm too fast on reporting success :(
It was a...
Forum: BSD 05-01-2020
34,065
Posted By sea
Since I had formated the usb as msdosfs, I did...
Since I had formated the usb as msdosfs, I did check the /dev/usb - which failed.

But you're on the right track, it IS /dev/cd0.
8365

However...
8364

Got that line from:
YouTube...
81,604
Posted By sea
You could redirect error messages to a...
You could redirect error messages to a (log-)file, for a later review, or to parse for known issues after the 'main' commands.
So instead of >/dev/null you would be using >>/path/to/logfile.

Hope...
Forum: BSD 05-01-2020
34,065
Posted By sea
Vbox - FreeBSD - get data from pendrive?
Heyas

I'm trying to test SWARM in a Vbox-FreeBSD environment.

I had prepared an ISO of my USB pendrive that just contains SWARM.
I'm using the FreeBSD image from my host's harddrive.
Both...
117,494
Posted By sea
This is how my AwesomeWM looks like with an empty...
This is how my AwesomeWM looks like with an empty desktop:
8361
18,941
Posted By sea
And that is why I dont understand why $1 == Name...
And that is why I dont understand why $1 == Name removes the "Name" line and shows the remaining values...
Because $1 is not empty -> it contains 'Name'... (and then the names...)

Cant wrap my...
18,941
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...
18,941
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...
18,941
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...
283,162
Posted By sea
As I'm currently waiting on some feedback about...
As I'm currently waiting on some feedback about systems I cannot test, such as MacOS or Solaris, I could improve the system detection slightly.

Big thanks to @Chubbler_XL for testing SWARM on...
72,509
Posted By sea
Your code works for me: [~] 0 $ type ord ; type...
Your code works for me:
[~] 0 $ type ord ; type chr
ord ist eine Funktion.
ord ()
{
printf '%d' "'$1";
return 0
}
chr ist eine Funktion.
chr ()
{
printf "\\$(printf '%03o'...
283,162
Posted By sea
Strange... 'All' I had to do was to remove some...
Strange...
'All' I had to do was to remove some echos of a bool function...

From:
swarm.util.isDir() { # /path/to/dir
# Returns true if passed string is a directory
# This function is...
283,162
Posted By sea
Ok, so while we're testing SWARM for...
Ok, so while we're testing SWARM for cross-platform abilities, I had figured that 'different theme for root' didnt apply.
So I fixed that.

Issue is....
- as a regular user - everything looks...
10,505
Posted By sea
oops :o As in, what code do you have so...
oops :o


As in, what code do you have so far?
10,505
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...
73,365
Posted By sea
Just came to mind - before this goes archive, if...
Just came to mind - before this goes archive, if you look for a solution to this issue, here is mine:

for opt in "${@}"
do # Only parse for Arguments
# if variable:'opt' starts with '-'
[[...
63,634
Posted By sea
Retrieving a list of functions and reduce results
Heyas

My core question is how to reduce the required time and diskusage (if/where possible) on the reduce-the-list issue.
# Get full list of all functions
local...
112,268
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...
283,162
Posted By sea
Get your daily dose of code here! How to...
Get your daily dose of code here!

How to make a simple 'press enter to continue' - "complex"?
You add options :p
press() { # [-c -l -r] [STR]
# Requires the user to press [Enter/Return]...
112,268
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,...
112,268
Posted By sea
Try: echo ${#text1} ${#text2} | awk '{print...
Try:
echo ${#text1} ${#text2} | awk '{print (100/$1*$2) }'

Hope this helps
49,691
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)
...
49,691
Posted By sea
Question regarding my blog-thread
Hello
The topic is: https://www.unix.com/shell-programming-and-scripting/283930-blog-thread-creating-shell-wrapper-runtime-modifier-swarm-new-post.html

When I got up today, I see there's a...
Showing results 1 to 25 of 500

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