Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 06.07.2007, 13:19   #16
sikorskys
Архивный участник
 
Join Date: Apr 2007
Posts: 39
Default

Ну и откуда такая негативная реакция? Я что, заставляю кого-то пользоваться gnu utils? Я ведь ни в коем случае не умаляю заслуг HF и не говорю о бесполезности обсуждаемой шары.

Было замечено, что точки в *_bug.txt должны соответствовать конкретной гео, а я лишь показал, как за минуту их можно получить.

Quote:
Originally Posted by Forcer View Post
Why not use ScriptMaker and in 30 sec do all work instead of another tools and command line?
А нету, лицензия кончилась. И думаю, я такой не один.

Quote:
Originally Posted by Forcer View Post
Btw: How you calculate xx_xx_bug.txt in which it is necessary to put coordinate? Through an ass? )
А вот умничать не надо, потому я тоже могу Пожалуйста (целых 5 минут писал):

Code:
#!/bin/bash
rm *_bug.txt
while read line; do
    x=`echo $line|cut -d\; -f1`; y=`echo $line|cut -d\; -f2`
    if [ $x -gt 0 ]; then geox=$[x/33000+20] else geox=$[x/33000+19] fi
    if [ $y -gt 0 ]; then geoy=$[y/33000+18] else geoy=$[y/33000+17] fi
    echo $line >> "${geox}_${geoy}_bug.txt"
done < ./bugs.txt
Все, готово. И безо всяких another tools
sikorskys is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:50.