Search Results

Search: Posts Made By: TiedCone
1,132
Posted By TiedCone
Not yet cos not sure if better to use awk (I will...
Not yet cos not sure if better to use awk (I will have to go through docs) or script with regex and loop but I do not scripting on daily basis so it will take a lot of time to make it work.

ps. I...
1,132
Posted By TiedCone
Change of fields order inline
Hi everyone,

What is the best solution to check every line in the xml file and change order of found field along with its value without touching value. Pattern will be given i.e. one line can look...
Forum: Programming 08-27-2015
1,642
Posted By TiedCone
Python Text substitute
I need to substitute only comma with dot in string like this:
<strong>5,4</strong>but not sure how to do this.
This does not work:
text = sub('<strong>[0-9](,)[0-9]</strong>',...
2,165
Posted By TiedCone
I can modify python code. Will see what I can do....
I can modify python code. Will see what I can do. Thanks
2,165
Posted By TiedCone
It is movie database created by python plugin. It...
It is movie database created by python plugin. It is not big deal. I can remove spaces manually from filenames.
2,165
Posted By TiedCone
Yes. Before I issue this command while read P F;...
Yes. Before I issue this command while read P F; do echo ${F#*:} ${P#*:}; done < $ I modify it with sed to look like in #1 but some titles have spaces:

PATH:/media/hdd/Media/Video/title number 1...
2,165
Posted By TiedCone
To be honest I do not know how to do it. If I...
To be honest I do not know how to do it. If I manually insert backspaces before spaces and run it in telnet session then it works but not with script.
2,165
Posted By TiedCone
I have a jpg files in /media/cache/. Each jpg...
I have a jpg files in /media/cache/. Each jpg coresponds to its movie file as it its cover so I need to create rule which will copy jpg from cache to i.e. /media/video where movie exists. That copied...
2,165
Posted By TiedCone
Text file is just example and every line will be...
Text file is just example and every line will be different apart from tag PATH: and FILE: which I added myself to make it easier.
Path after FILE: is path to existing file which has to stay in place...
2,165
Posted By TiedCone
While read line loop
Based on text file:
PATH:/media/hdd/Media/Video/title1 FILE:/media/cache/281662-14.jpg
PATH:/media/hdd/Media/Video/title2 FILE:/media/cache/281662-15.jpg
PATH:/media/hdd/Media/Video/title3...
2,063
Posted By TiedCone
Thanks to all. Unfortuantelly I was not able to...
Thanks to all. Unfortuantelly I was not able to use above examples but I found another way to achieve my goal by using grep and sed. I just simply copied existing <vlc:id>0</vlc:id> strings and...
2,063
Posted By TiedCone
This is not what I want to achieve. :) Lines: ...
This is not what I want to achieve. :)
Lines:
<vlc:item tid="0"/>are outside of <track></track>.

This is completely different string but its values have to match values of ...
2,063
Posted By TiedCone
You are fast mate. Thanks, perfect solution. :) I...
You are fast mate. Thanks, perfect solution. :) I have another one...

Assume tha last occurrence of <vlc:id>50</vlc:id> has value 50 I need to create the same amount of lines:

...
2,063
Posted By TiedCone
Find and increment at each occurence of string (loop)
I created script (sh shell) to generate vlc playlist based on some data files. All works fine so far except one string I do not know how to handle with.

VLCSTART='<vlc:id>'
VLCV=0...
Forum: Solaris 12-30-2014
6,784
Posted By TiedCone
I know, sorry for that but I am not able to copy...
I know, sorry for that but I am not able to copy and paste from that machine. It is completely separated. Thanks one more time. :b:
Forum: Solaris 12-30-2014
6,784
Posted By TiedCone
Exactly, Desktop is separate folder. You guys...
Exactly, Desktop is separate folder. You guys rocks!

Command mv "$(printf "\e[32m")" brokenfile fixed my problem. For any reason there was something without visible name causing that problem....
Forum: Solaris 12-30-2014
6,784
Posted By TiedCone
Will this remove Desktop as well? Desktop has to...
Will this remove Desktop as well? Desktop has to stay there.
Forum: Solaris 12-30-2014
6,784
Posted By TiedCone
Indeed there is something cos output of this...
Indeed there is something cos output of this command shows something like:
0000000 0 3 3 [ 3 2 m \n D e s k t o p / \n
but if I try to list all files I cannot find it. How can I remove...
Forum: Solaris 12-30-2014
6,784
Posted By TiedCone
It has to be something related to home folder of...
It has to be something related to home folder of root. I just found out that it happens only within root folder (/root). If I escape it and send 'ls' command text stays black as it should....
Forum: Solaris 12-30-2014
6,784
Posted By TiedCone
type ls in root gives me ls is aliased to ls -F...
type ls in root gives me ls is aliased to ls -F only, nothing more.
ls -l /usr/bin/l*;sum /usr/bin/ls;uname -a gives me 18700 JUN 11 2008
grep usr/bin/ls...
Forum: Solaris 12-27-2014
6,784
Posted By TiedCone
That could be the point but I am not convinced...
That could be the point but I am not convinced due to tput sgr0 does not fix it permanently. If I turn it off using above command and use 'ls' after that, then all is green again.
I will check all...
Forum: Solaris 12-27-2014
6,784
Posted By TiedCone
Some simple script, nothing special. One of them...
Some simple script, nothing special. One of them was ping test with colored output depends on the answer. I tested some color commands in terminal and could be that one of them is messing this up...
Forum: Solaris 12-27-2014
6,784
Posted By TiedCone
Ok then. Like I said, on Tue I will answer all...
Ok then. Like I said, on Tue I will answer all question.



Only fg (text) is green, even along with the shell prompt after 'ls' is used. It does not depend on last files listed. It happens right...
Forum: Solaris 12-27-2014
6,784
Posted By TiedCone
I will check and post output on Tuesday cos do...
I will check and post output on Tuesday cos do not have remote access. Thanks for feedback. I just installed solaris 10 on my virtual machine at home so will have comparison. If i am not mistaken I...
Forum: Solaris 12-27-2014
6,784
Posted By TiedCone
Solaris 10 - 'ls' green for root user only
Welcome to all.

Have an issue and looking for help so hope someone is able to give me some clues.

I prepared some shell scripts with coloured output to help other guys to have more automated...
Showing results 1 to 25 of 25

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