Search Results

Search: Posts Made By: rebelbuttmunch
2,577
Posted By rebelbuttmunch
how to start a process killable by all
Hi,

Is there a way to start a process that any other user would have the privs to kill?

Thanks.
2,803
Posted By rebelbuttmunch
Fantastic. Dedicate that brain to science upon...
Fantastic. Dedicate that brain to science upon your demise, may it be far into the future. ! :) . It worked like a dream
2,803
Posted By rebelbuttmunch
desired output would be b=2 b=225
desired output would be
b=2
b=225
2,803
Posted By rebelbuttmunch
extract string from varying delimiter line
Hi

I have lines like this

a=1, b=2, c=3,
a=1, d=4, e=5, b=225,

I need to extract the b=nnn... value. I dont know how many other entries will be before and after it in each line. Ive tried...
45,444
Posted By rebelbuttmunch
I think it will be ok for me. I really only want...
I think it will be ok for me. I really only want to split by comma and then sort alpahbetically

between each comma are name value pairs and I only care about the first letter in the name.
45,444
Posted By rebelbuttmunch
Thanks Joey, it worked like a dream I split...
Thanks Joey, it worked like a dream

I split on the comma like this
echo $line | tr "," "\n" | sort | tr "\n" " "


Would there be a way to move one of the terms to the top of the list after...
45,444
Posted By rebelbuttmunch
nice one. although my line will have more than 9...
nice one. although my line will have more than 9 terms, seperated by commas

e.g
csoTopic=Topics: Artists Exact Match, queryTerm=new kids on the block, defaultDisplayName=New Kids On The Block,...
45,444
Posted By rebelbuttmunch
sort words in a line
Hi
Im looking for a way, hopefully a one-liner to sort words in a line

e.g

"these are the words in a line"
to
"a are in line the these words"

Thanks!
7,698
Posted By rebelbuttmunch
Need to create a memory leak
Hi.

This might be a strange request, but does anyone have any idea on a simple shell script that would use more and more memory as it ran? Like a purposeful leak.

I want to test the behaviour...
2,173
Posted By rebelbuttmunch
Worked like a charm! Thanks!
Worked like a charm!

Thanks!
2,173
Posted By rebelbuttmunch
string deletion, variable contents, fixed delimiters
Hi,

I need to mass delete the following string(s) from my files

weight=100,

However the '100' is variable e.g

Current:
----------------
moretext=bar, weight=100, moreinfo=blah...
4,048
Posted By rebelbuttmunch
compare strings, words in different order
Hi,

Would anyone know how to compare two strings, and only throw an error if there were different words, not that the same words were in a different order?

e.g
"A B C" vs "B C A" ->OK
"A B...
Showing results 1 to 12 of 12

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