Search Results

Search: Posts Made By: yomaya
2,314
Posted By yomaya
The awk from itkamaraj does it right, but the...
The awk from itkamaraj does it right, but the file still needs some pruning (as it adds one first "dashed-line"). Finally I think I'll use the perl inliner from durden_tyler and balajesuri for better...
2,314
Posted By yomaya
Thank you both! The perl code performs great! ...
Thank you both!
The perl code performs great!

Just one more thing: I need the script to add one last line with dashes after the CODE_N block. How could this be done with your perl code?
2,314
Posted By yomaya
Separate lines in csv by column content (newbie)
Hello everyone

I have a csv file organized just like in the following example:

col1,col2,col3,CODE_0, ... , colN
col1,col2,col3,CODE_0, ... , colN
col1,col2,col3,CODE_1, ... , colN...
2,085
Posted By yomaya
Thank you both very much! Y.
Thank you both very much!

Y.
2,085
Posted By yomaya
Wow... I think I'm definitely missing too...
Wow...

I think I'm definitely missing too much with awk... Could you please briefly give me some insights on this?
2,085
Posted By yomaya
help parsing txt with awk
Hi all

I would need some help to introduce 'break' lines into the following
data by using awk:

original data:
RECORD 1000 aaa xxxxxx
RECORD 1001 aaa xxxxxx
RECORD 1002 bbb xxxxxx
RECORD...
2,224
Posted By yomaya
Perfect! Thanks!
Perfect!

Thanks!
2,224
Posted By yomaya
bash: combine arrays with weird substitution/references
Hi all.

I'm trying to finish a bash script with the following elements:

ARRAY[0]="blah $ITEM blah blah"
ARRAY[1]="blah blah $ITEM blah bluh"
#ARRAY[n]="...."
# ...the ARRAY elements...
4,072
Posted By yomaya
Thank you very much. It does the job properly! ...
Thank you very much. It does the job properly!

Do you know if it's possible to do this without invoking 'sed' (for instance by parameter substitution)? The reason why it would be nicer doing it...
4,072
Posted By yomaya
VAR='blah blah blah # seew seew' ...
VAR='blah blah blah # seew seew'
^ ^

NEWVAR='blah blah blah'
^ ^ (<- should get preserved)The subchain that should be removed is:
' # seew seew'
4,072
Posted By yomaya
Thanks, but the text to preserve has also...
Thanks, but the text to preserve has also blanks... Maybe I should have been more precise...

VAR='blah blah blah # seew seew'
^ ^

NEWVAR='blah blah blah'
...
4,072
Posted By yomaya
regex to remove commentaries and blanks at the end of the line
Hi all,

I need to prune a var's content as follows:

VAR='blah blah # seew seew'

NEWVAR='blah blah'

(without blanks)

I need also to perform this change by using variable...
4,798
Posted By yomaya
Both ideas work perfectly. As I'm only testing a...
Both ideas work perfectly. As I'm only testing a couple of fast ideas by now, I'll keep the Perl code in the safe... ;)

Thanks a lot!
4,798
Posted By yomaya
regex to remove text before&&after comma chars
Hi, all: I have a question about "cleaning up" a huge file with regular expression(s) and sed:

The init file goes like this:
...
Showing results 1 to 14 of 14

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