|
¾È³çÇϽʴϱî ?
ÇÑÀÔ´Ï´Ù.
±ÞÈ÷ ¿©·¯ºÐ²² ÇïÇÁ¸¦ ¿äûÇØ¾ß ÇÒ »çÇ×ÀÌ »ý°Ü¼ ¸»ÀÔ´Ï´Ù.
¾Æ·¡´Â º¤ÅÍ Æ÷¸ËÀÔ´Ï´Ù.
9.000 XXX0000000000001000000011111111110000
ÇöÀç º¤ÅÍ°¡ ½Ã°£°ú ±×¸®°í º¤ÅÍ·Î ³ª´©¾îÁ®¼ Ãë±ÞÀÌ µÇ°í ÀÖ¾ú¿ä.
±×·¡¼ 9.000°ú XXX0000000000001000000011111111110000°¡ ÇÑ°³·Î
Ãë±ÞÀÌ µÇ°í ÀÖÁÒ. ±×·±µ¥ vector part¿¡¼ 5¹ø° ÀÖ´Â ³ÑÀ» ¹Ù²Ù·Á°í ÇÕ´Ï´Ù.
¼ýÀÚ°¡ ¾Æ´Ñ ¹®ÀÚ·Î, ±×·±µ¥ ¾ðÁ¦³ª ŸÀÔÀÌ XXX00°¡ ¾Æ´Ï¶ó ¾Õ°ú µÚ°¡ ¹Ù²î¾î¼
5¹ø°¶ó°í ÁöÁ¤À» Çؼ ¹Ù²Ù°í ½ÍÀºµ¥ ¾î¶»°Ô ÇØ¾ß ÇÒÁö ¾ÆÀ̵ð¾î°¡ ¶°¿À¸£Áö ¾Ê¾Æ¼..
°í¼öµéÀÇ µµ¿òÀ» ûÇÕ´Ï´Ù.
ÀÌ»ó.
ºü¸¥ ¿¬¶ô ¹Ù·¡¿ä...
Best Regards.
James
³»°¡ ¾´ ´ä:
#!/usr/bin/perl -U
local $aline = "9.000 XXX0000000000100010101011010110";
print "original:$aline\n";
my ($dtime,$data) = split(' ',$aline);
my @bit = split('',$data);
$bit[4] = 'L';
$data = join("",@bit);
$aline = join(" ",$dtime,$data);
print "modified:$aline\n";
0;
ÀåÁ¤¿ì¾¾ ´ä:
#!/usr/local/bin/perl
open(FILE,"vector");
$change = "JJW";
while(<FILE>)
{
if(/(\S+)(\s+)(\S?\S?\S?\S?)(\S?)(\S+)/){
print $1,$2,$3,$change,$5,"\n";
}
}
|
|