Search Results

Search: Posts Made By: jascas
1,170
Posted By jascas
I can't use this because it deletes the lines...
I can't use this because it deletes the lines that end in .png and it does not take into account lines that end in .gif or a number value.
1,170
Posted By jascas
Parsin Problems
Hi all
I have this line of code for parsing .properties but it does not work corectly. As you can see I want to put an "XxxX" at the end of each line that has an "=" in it and it must exclude those...
1,573
Posted By jascas
Thanks Devaraj! Can you also change this so...
Thanks Devaraj!

Can you also change this so it checks for .gif and that the line does not END in in a number?

Thanks!
1,573
Posted By jascas
Parsing files
Hi I have code to parse a properties file (${name}) and put the letters 'XxxX' on the end of each line that has an '=' sign in it. See bellow:


sed -e '/=/s/,/XxxX,/' -e '/=/s/$/XxxX/' "${name}"...
3,542
Posted By jascas
Thanks man!
Thanks man!
3,542
Posted By jascas
Sorry my mistake it only works if there is '/*' &...
Sorry my mistake it only works if there is '/*' & '*/' before and after it.

They are not in the code I just put them there for demonstration purposes. Can that be changed to reflect this?
...
3,542
Posted By jascas
I used awk - thanks. However it not seem to...
I used awk - thanks.

However it not seem to do anything, when I ran it it just printed out the text but there was no 'X' at the end of it.
3,542
Posted By jascas
How can i run this? bash: nawk: command...
How can i run this?

bash: nawk: command not found is what I get :(
3,542
Posted By jascas
Parse file with '=' sign
Hi,

Can anyone help me parse the code bellow. I have a file with several lines. I ant to put an 'X' on the lines that ONLY have an '=' in them ignoring comma's, spaces etc..

So:
/*
,
...
2,377
Posted By jascas
Sorry
Sorry I forgot about the code tags :(
2,377
Posted By jascas
Hi all and thanks. I used your code zaxxon and it...
Hi all and thanks. I used your code zaxxon and it worked fine.

I was wondering if I can change that now to use '=' sign instead of a commas?

So:
/*
,

systems.menuLabel.new=New...
2,377
Posted By jascas
Thanks for your reply zaxxon & Shahul. ...
Thanks for your reply zaxxon & Shahul.

However the problem is that I only want to put an 'X' after a line that has two commas in it? (Not one at the start of the line but in the middle of it.
...
2,377
Posted By jascas
Parsing a File
Hi,

I want to parse a tricky comma separated csv file called runTest.csv (See bellow)
/*
./thirdparty/messages.properties,
,

./thirdparty/messages.properties,login.label.server,Server...
Showing results 1 to 13 of 13

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