CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2830|Reply: 4

Split kan nombor2

[Copy link]
Post time 15-8-2011 12:35 AM | Show all posts |Read mode
Guys..
Saya ada data bernombor2 macam ni

12341515
12441520
12641525
12741530
.....
...

Macam mana nak split kan nombor3 kat atas ni menjadi dua bahagian?
guna awk? sed? atau????


saya nak output macam kat bwh ni :
1234      1515
1244      1520
1264      1525
1274      1530
.....          ...........

advise me,  please
Reply

Use magic Report


ADVERTISEMENT


 Author| Post time 15-8-2011 10:31 PM | Show all posts
Dah dapat cari penyelesaian nya. . Case closed
Reply

Use magic Report

Post time 21-8-2011 03:25 PM | Show all posts
lol. ada dua cara yang aku nampak
1. function split untuk setiap 4 char
2. regex untuk setiap 4 char.

dah kenapa aku rasa sama je dua dua tu
Reply

Use magic Report

Post time 11-9-2011 06:53 PM | Show all posts
ko guna awk ke ko guna sed? kasi la update sini apa solution baru boleh belajar
Reply

Use magic Report

Post time 21-9-2011 03:35 PM | Show all posts
senang jer ni.. kalu google terus jupe ni.. hehe
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

23-12-2024 04:56 PM GMT+8 , Processed in 0.828109 second(s), 17 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list