Search Results

Search: Posts Made By: WolwX
2,481
Posted By WolwX
Auto Refresh iptables's webmin settings
Hello people :)

Here it's a simple thing to do, but really hard for me ^^'

I use webmin and don't want to stop use it, but I'm stucked with something ...

I search how refresh webmin's...
3,394
Posted By WolwX
Exact ! I don't know why this was removed,...
Exact !

I don't know why this was removed, but now I will test all those things ^^

Thanks again and sorry for that bug
3,394
Posted By WolwX
Sorry :x Here it's the output ...
Sorry :x

Here it's the output

root@blabla:/home/+LOGS+# cat 99
<?xml version="1.0" encoding="utf-16" standalone="yes"?> <values> <add key="" value="512" type="System.String,mscorlib" /> <add...
3,394
Posted By WolwX
the output still the full bigvariable, including...
the output still the full bigvariable, including if I use single quotes, double quotes or no quotes

levelname=$(sed 's:.*<add key="LevelName" value="\([^"]*\)" type="System.String,mscorlib"...
3,394
Posted By WolwX
I'm sorry but that's don't work :x ...
I'm sorry but that's don't work :x

levelname=$(sed 's:.*<add key="LevelName" value="\([^"]*\)" type="System.String,mscorlib" />.*:\1:g' /home/+LOGS+/99)
echo $levelname

Print all the...
3,394
Posted By WolwX
levelname=$(echo "${bigvariable}" | sed 's:.*<add...
levelname=$(echo "${bigvariable}" | sed 's:.*<add key="LevelName" value="\([^"]*\)" type="System.String,mscorlib" />.*:\1:g')

This one work perfectly CarloM :D
Thanks :)

Last step I guess,...
3,394
Posted By WolwX
Sed version 4.2.1 I tested this code => ...
Sed version 4.2.1

I tested this code =>

bigvariable="<?xml version="1.0" encoding="utf-16" standalone="yes"?> <values> <add key="" value="" type="System.String,mscorlib" /> <add key="" value=""...
3,394
Posted By WolwX
I'm sorry, I'm noob with that, can you explain me...
I'm sorry, I'm noob with that, can you explain me how include your command ?

bigvariable="<?xml version="1.0" encoding="utf-16" standalone="yes"?> <values> <add key="" value=""...
3,394
Posted By WolwX
Ok I'm back and I did some test :) So here...
Ok I'm back and I did some test :)

So here it's the script I used to test that =>

bigvariable="<?xml version="1.0" encoding="utf-16" standalone="yes"?> <values> <add key="" value=""...
3,394
Posted By WolwX
Oh :D That's look like very fine CarloM ...
Oh :D
That's look like very fine CarloM
That's command will work with using flat file I presume ?
And the sed function remove all informations into the ${bigvariable} except the information I want...
3,394
Posted By WolwX
Ok jayan_jay, thanks :) But I wanted to extract...
Ok jayan_jay, thanks :)
But I wanted to extract only one of those information, one specified by an very accurate delimiter for that I specified something who can only work with LevelName
You...
3,394
Posted By WolwX
Ok perfect ^^ I will try to use it, but one...
Ok perfect ^^

I will try to use it, but one last thing, can you tell me how I can use it by calling another variable or into a txt file ?

I mean, this variable into wich I cut this information...
3,394
Posted By WolwX
That's look like nice, but I wish to use it into...
That's look like nice, but I wish to use it into a bash shell script

"#!/bin/bash", this will be a variable used by another command.

How I can include your code ?
3,394
Posted By WolwX
Extract information into large variable
Hello people :)

That's here my first message to your forum, so I guess it would be fine ^^

I have a request about a code I want to use.

Actually, my system use a large variable, including...
Showing results 1 to 14 of 14

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