Jump to content

Calling all UNIX guys


Recommended Posts

Posted

[quote author=ronitreddy link=topic=214654.msg2637263#msg2637263 date=1311211040]
baa naku office access ledu ..i cant do it right now .. cry@fl repu office lo try chestha..procedure mundu telisthee better kada
[/quote]naku ipudu unix access ledhu  !q#

if above doesnt work.. see below ba..[b][color=red] tr -d[/color][/b] use chesi numbers ni extract cheyochu anta

echo "lvol4" |  tr -d '[A-Za-z]' | read numStr

[url=http://www.unix.com/shell-programming-scripting/40284-how-do-i-get-numbers-string.html]http://www.unix.com/shell-programming-scripting/40284-how-do-i-get-numbers-string.html[/url]


.................................................................................

numbers anni ochaay ante oka file lo from file1.txt .. aah numbers one after other compare chesey  like  I earlier mentioned .. match aindhi anuko filex.txt lo number with file2.txt .. line number in file1.txt ni capture chesko

aah line numbers lo unna contents ni print chesey inko file lo ki from file1.txt (line numbers will be same in filex.txt and file1.txt .. if file1.txt contains numericals in all lines .. text unna lekapoyina doesnt matter.. but numerical mathram undaali)

  • Replies 38
  • Created
  • Last Reply

Top Posters In This Topic

  • ronitreddy

    15

  • Gachibowli_Diwakar

    11

  • lover

    8

  • PMREDDY19

    2

Popular Days

Top Posters In This Topic

Posted

thankyou thankyou H&*() H&*() H&*()


//aah line numbers lo unna contents ni print chesey inko file lo ki from file1.txt (line numbers will be same in filex.txt and file1.txt .. if file1.txt contains numerical s in all lines .. text unna lekapoyin a doesnt matter.. but numerical mathram undaali)//

Ardam kaledu..

Posted

[quote author=ronitreddy link=topic=214654.msg2637322#msg2637322 date=1311211723]
thankyou thankyou H&*() H&*() H&*()


//aah line numbers lo unna contents ni print chesey inko file lo ki from file1.txt (line numbers will be same in filex.txt and file1.txt .. if file1.txt contains numerical s in all lines .. text unna lekapoyin a doesnt matter.. but numerical mathram undaali)//

Ardam kaledu..
[/quote]file1.txt has below entries
abc123xyz
xyz789aa

filex.txt will now have 123
789

file2.txt has entries like below anuko
hjcnd123un
hdjnvjf789uehu


ipudu 123,789 line numbers in filex.txt ni capture chesko.. aah line numbers lo unna content ni post chesey from file1.txt

Posted

Avunu baa nee

file1.txt lo

  Particula r  numberof character s taruvatha .. numbers vastaayi. .  aa numbers matram account numbers..
..
file2.txt  lo

ok particula r number of character s taruvata .. numbers vastayi ... aa  numbers matram acct. numbers ani..


Ala oka standard untundhi kadhaa ba..



abc....[b]12 3456789  [/b]be rt
gfd.....[b]758457485h  [/b] fdf
dfd.....[b]638564658h    [/b] fdf where 123456789,758457485, 638564658 are account numbers.

for file2.txt, some of the sample records were shown below:

hfdifdifj dkfjdkd  [b]74 84737437      [/b]h fhsdlfhdh fsd
yruerueur yeuyr  [b]8745 83783  [/b]ureo iruueooeh
hkdfhkhfk hdfkk  [b]6385 64658  [/b]klfl dkflkdlkf lkd where 748473743 7,874583783, 638564658 are account numbers








ACP .. okasari . ila oka standard number of characters taruvatha vaatini extract chesi..


aa content ni , inko  danilo oka set of characters in the middle of each line compare chesey chance undadadha..




sCo_^Y sCo_^Y sCo_^Y sCo_^Y sCo_^Y sCo_^Y sCo_^Y sCo_^Y

Posted

[quote author=OM link=topic=214654.msg2637350#msg2637350 date=1311211986]
Avunu baa nee

file1.txt lo

  Particula r  numberof character s taruvatha .. numbers vastaayi. .  aa numbers matram account numbers..
..
file2.txt  lo

ok particula r number of character s taruvata .. numbers vastayi ... aa  numbers matram acct. numbers ani..


Ala oka standard untundhi kadhaa ba..



abc....[b]12 3456789  [/b]be rt
gfd.....[b]758457485h  [/b] fdf
dfd.....[b]638564658h    [/b] fdf where 123456789,758457485, 638564658 are account numbers.

for file2.txt, some of the sample records were shown below:

hfdifdifj dkfjdkd  [b]74 84737437      [/b]h fhsdlfhdh fsd
yruerueur yeuyr  [b]8745 83783  [/b]ureo iruueooeh
hkdfhkhfk hdfkk  [b]6385 64658  [/b]klfl dkflkdlkf lkd where 748473743 7,874583783, 638564658 are account numbers








ACP .. okasari . ila oka standard number of characters taruvatha vaatini extract chesi..


aa content ni , inko  danilo oka set of characters in the middle of each line compare chesey chance undadadha..




sCo_^Y sCo_^Y sCo_^Y sCo_^Y sCo_^Y sCo_^Y sCo_^Y sCo_^Y
[/quote]oka standard position in a line lo kani numericals unte .. extract cheseyyochu ba easy ga ne .. I dont know at this moment .. kani adhi easy ne

kani hay-wire ga ekkada padithe akkada numericals unte.. we might have to use tr -d .. anta nenu epudu try cheyaledu

Posted

[quote author=Musugu_Veerudu link=topic=214654.msg2637372#msg2637372 date=1311212237]
oka standard position in a line lo kani numericals unte .. extract cheseyyochu ba easy ga ne .. I dont know at this moment .. kani adhi easy ne

kani hay-wire ga ekkada padithe akkada numericals unte.. we might have to use tr -d .. anta nenu epudu try cheyaledu
[/quote]

considering ur point, for sure there must be some standard for saving the account number in a DB table , if I am not wrong..

so in the same way, we also need to make sure that file contains only the account number kadha..
(iff the file1 got the numbers which refers only to the account numbers and nothing else) and thesame in the file..

then there willbe no issue.. if the fie includes some other numbers referiing to a serial something like that.. then the compare may give a diff output..( just a doubt) not sure about that kind of case...


anyhow all the best ronit.....

Posted

[quote author=OM link=topic=214654.msg2637461#msg2637461 date=1311212906]
considering ur point, for sure there must be some standard for saving the account number in a DB table , if I am not wrong..

so in the same way, we also need to make sure that file contains only the account number kadha..
(iff the file1 got the numbers which refers only to the account numbers and nothing else) and thesame in the file..

then there willbe no issue.. if the fie includes some other numbers referiing to a serial something like that.. then the compare may give a diff output..( just a doubt) not sure about that kind of case...


anyhow all the best ronit.....
[/quote] @gr33d @gr33d  @gr33d

Posted

[quote author=OM link=topic=214654.msg2637461#msg2637461 date=1311212906]
considering ur point, for sure there must be some standard for saving the account number in a DB table , if I am not wrong..

so in the same way, we also need to make sure that file contains only the account number kadha..
(iff the file1 got the numbers which refers only to the account numbers and nothing else) and thesame in the file..

then there willbe no issue.. if the fie includes some other numbers referiing to a serial something like that.. then the compare may give a diff output..( just a doubt) not sure about that kind of case...


anyhow all the best ronit.....
[/quote]

emo baa chudali..Anyhw thanx guys for all ur help..

×
×
  • Create New...