Search Results

Search: Posts Made By: ldiaz2106
1,835
Posted By ldiaz2106
Hi very usefull. Thank you very much !! ...
Hi

very usefull. Thank you very much !!
Does any one can paste url of a tutorial sed and awk for beginners??
jajaja This tools seem to be very powerfull.

Cheers
1,835
Posted By ldiaz2106
Hi thanks for this rapid answer... Whooaw So...
Hi
thanks for this rapid answer... Whooaw
So I guess that the way to grab the xxxx-xxxx patern is:

(\\\\$a[0-9]\{4\}-[0-9]\{4\}\)

The start is parentesis write?
I do not anderstand the \\\\...
1,835
Posted By ldiaz2106
Replace the line with specific pattern
Hello All

I'm trying to change one string from a file contening this patern:
xxxx-xxxx

4 numbers - end 4 other numbers
This is a sample of the file:

LDR 00679 am a2200205 4500
=001 ...
2,701
Posted By ldiaz2106
Yes, this time is 100% ok Whaaa Thanks again...
Yes,
this time is 100% ok
Whaaa Thanks again for your help
feel free to ask for all you want around Oracle db
Cheers
2,701
Posted By ldiaz2106
mmmm so with notepad++ I open the file and...
mmmm
so with notepad++ I open the file and "conversion=>utf8" will be enougth?
I try !

---------- Post updated at 12:22 PM ---------- Previous update was at 12:16 PM ----------

I try this way...
2,701
Posted By ldiaz2106
Ok, I try and this is the result: good ...
Ok,
I try and this is the result:

good
vtls000000013;\\$aAnual;\\$a1327$i090$j090$k03;\\$aG-0644;\\$aSALA-14.04(E)...
2,701
Posted By ldiaz2106
Ok Great !!! Thanks a lot, now I see the...
Ok Great !!!
Thanks a lot, now I see the sctructure better.
I'll look for some tutorial in youtube in order to get it better.

Have a nive week end !!

PD: If you need some help with oracle...
2,701
Posted By ldiaz2106
Hello yes it helps...Thanks But now I have...
Hello
yes it helps...Thanks
But now I have other dubt, imagine I would like to add one or more fields, for exemple this ones:
=003 VRT
=005 20111020150800.0
=008 ...
2,701
Posted By ldiaz2106
Whassshh yes it works. Many thanks,,, But how...
Whassshh yes it works.
Many thanks,,, But how does it work?
I see 3 parts in you script.
the 2 first are the field I want to catch and join...ok and the last one is the filter condition. But I'm...
2,701
Posted By ldiaz2106
hello Thanks for you reply. Look the error I...
hello
Thanks for you reply.
Look the error I have, I'm trying your script with WINDOWS (I know).
Later I'll test on my linux:

C:\>awk '/^=590/{ L=$0; gsub(/=590 /,"",L); print L; }' bib.txt...
2,701
Posted By ldiaz2106
Grab from file with sed
Hello All

I have a file with this type of records:

=LDR 01157nas a22003011a 4500
=001 vtls000000013
=003 VRT
=005 20111020150800.0
=008 100128c19699999sp\a|||||\||||0\\\||spa|
=037 ...
6,131
Posted By ldiaz2106
Hello well, the data is stored into SQL server...
Hello
well, the data is stored into SQL server 2008, and the application front head is java via web, so users enter here and put the text ; The application give the option to use an editor msword...
6,131
Posted By ldiaz2106
Ok, very nice !! it works fine. Many...
Ok,
very nice !! it works fine.

Many thanks again
Have a nice day !
6,131
Posted By ldiaz2106
Hello thanks for your answer. I have a dubt,...
Hello

thanks for your answer. I have a dubt, where you put ascii I must replace by the ascii code of this point? or I execute the command just like you wrote?

I'll try anyway

Thanks
6,131
Posted By ldiaz2106
Remove some special ascii character
Hello

I have this special caracter after retreving rows from sql server:

"....spasses: • Entrem al valort 6050108002811 • El donem..."

I would like a sed command to remove it..or just...
1,232
Posted By ldiaz2106
Hello I always thanks all the people...
Hello
I always thanks all the people responding, I'l database admin so I can help with any question in relation with this. Is there any database zone in the forum? I'll be pleased to give all the...
1,232
Posted By ldiaz2106
match 2 files by values
Hello ALL,

Hope all fine for you.
I have the following task but no idea about how to do.

I have 2 files (ascii)
one of them is a list of bib records, looks like this:


=LDR 01228nam ...
1,936
Posted By ldiaz2106
Hello do you remember this cool command line? ...
Hello
do you remember this cool command line?

nawk -F"[\$a ]" '{if ($0~/^=866/) {print "=952",$3"$a"$5$3"$b"$5"\\\\$h"$6"\\\\$o"$5"0000000'\\\$p"$5"0000000'\\\\$yJNL" } else {print $0}}'...
1,192
Posted By ldiaz2106
Hi Thanks for your prompt answer. I think...
Hi
Thanks for your prompt answer.
I think there is a problem,
I paste here one record:
This is the original before the awk command.

=LDR 00901nas 2200205 i 4500
=005 20061017111721.0
=008...
1,192
Posted By ldiaz2106
target string to delete
Hi all,
I have a text file with a lot of records.
In each records I have tags like this:

=952 \\$aBNCS-CH\\$bBNCS-CH\\$h1989\\$oBNCS-CH0000001\\$pBNCS-CH0000001\\$yJNL
=952...
1,446
Posted By ldiaz2106
Hi this script is 80% good: use...
Hi

this script is 80% good:

use warnings; use strict; while ( <> ) { next if m/\A=856/; chomp; if ( m/\A=952/ ) { my @f = split; printf...
1,446
Posted By ldiaz2106
Hi Thanks a lot for this script. I try it...
Hi
Thanks a lot for this script.
I try it with a sample and here is the result:
First, if I redirect to a new file I have this:

ubuntu@ip-10-235-33-163:~$ perl 856.pl text1.txt >text2.txt
Use...
1,446
Posted By ldiaz2106
find and replace
Hi All,

I have a file with a succesion of records like this:

=LDR 00943nas 2200241 i 4500
=005 20110318131920.0
=008 920528c1965\\\\-usqr\p\r\\\\\0\\\\\eng\d
=022 0\$a0002-9262
=022 ...
1,936
Posted By ldiaz2106
Yesss Very nice command line. I have to add...
Yesss
Very nice command line. I have to add some filed more, but I have done it myself following the exemple and it works.
Thank you very much.

Have a nice week end !!
Cheers

---------- Post...
1,936
Posted By ldiaz2106
Hoo Yes Good, this time it's working: Can I...
Hoo Yes
Good,
this time it's working:
Can I ask other task??

In the original file I have:

=866 \\$aBNCS-CH 1971-75(1976)1977-2003(2004)2005-
=866 \\$aBNCS-C.UNIV 1990-93(1994)1995-2001....
Showing results 1 to 25 of 66

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