[00:01] Join: jkw joined #corewars [00:04] MSG: Ping timeout: 255 seconds [00:08] MSG: Read error: Connection reset by peer [00:17] Join: johnkw joined #corewars [00:23] happy microsoft patch day [09:11] Waknuk: http://www.shadowmagic.org.uk/corewar/koth.tar.gz [09:11] It doesn't really do tournaments though: it's a benchmark program. [09:11] And much better written in $SCRIPTING_LANGUAGE_OF_YOUR_CHOICE [09:21] Join: banet021 joined #corewars [09:21] MSG: Client Quit [09:23] Join: banet484 joined #corewars [09:26] MSG: Client Quit [11:03] Join: Core_old joined #corewars [13:03] MSG: Quit: Trillian (http://www.ceruleanstudios.com [13:29] Join: fiveop joined #corewars [13:40] Nick Change: ares_ changed nick to ares [13:43] MSG: Quit: . [13:43] Join: ares joined #corewars [13:47] MSG: Client Quit [13:48] Join: ares joined #corewars [13:50] Join: John joined #corewars [13:50] Hi :-) [15:44] MSG: Quit: mov.i #1,1 [16:02] Join: Fluffy joined #corewars [16:02] :) [16:37] Just sent some nano-warriors to Koenigstuhl [16:42] hmm [17:32] MSG: Quit: Lost terminal [17:50] Join: Core_old joined #corewars [17:55] Hi old Core! [17:59] http://miravi.eo.esa.int/en/ - near realtime images of earth :) [18:00] Strike! Another X-class flare! :) [18:05] n'evening... [18:06] ... [18:06] yawn [18:07] Join: willvarfa joined #corewars [18:07] evening all [18:07] Hi willvarfa [18:08] all quiet? [18:08] all tired. [18:09] No, I'm busily generating new nano warriors [18:10] personally, or evolving? [18:10] I'm too stupid to write a decent nano warrior :) [18:18] but clever enough to get a computer to do it for you? [18:20] I wouldn't call that clever, but at least my worst nano-warriors usually miss the hill by only 1-3 points. [18:22] ... and I'm on the way to get my first +100-age nano warrior [18:45] ok, you were right. everybody is tired ;-) [18:53] usually a full moon makes me active [18:53] it already over [18:54] *it's [18:59] * willvarfa waves [18:59] MSG: Remote host closed the connection [19:10] http://www.gehirnhydrant.de.tt/ [19:28] this is crapola [19:29] damn unix-lessons, having to make a shellscript to in effect reformat results of ls [19:30] http://www.badgerbadgerbadger.com/ [19:37] someone tell me how to make set `ls -l $1 | grep $1` actually work [19:38] ok, i dont need the grep, but anyway [19:40] MSG: Quit: Leaving. [19:41] what do you want to do with this? [19:42] i have to make a script, which takes a file as an commandline argument, and prints out "file x owned y size z made abc" [19:43] what did you mean with "set" ? [19:44] command set takes variables given to it, and makes them into variables [19:45] ls -l $1 gives me the file information i need, but when i give the result to set, it turns out into set -rwxrw-r- something something something , and it thinks -rwxetc as a argument instead of data to set into variable [19:46] cant find an argument for ls to show info without the premissions (rwxetc) [19:46] or for set to ignore latter arguments [19:46] could enclosing the output in " help? [19:47] i am not sure what you need... i am not very expirienced with shells... is it bash? should the set make further ls calls work like the given string ls -l...grep ? [19:48] `something` runs command something, and replaces itself with the result from it [19:48] okay i knew this [19:48] non-bash scripts not allowed [19:48] so you want results to put into variables? [19:48] i dont think so [19:49] you want a command like showinfo , right? [19:49] yes [19:49] so you need ls to output only name, group and whatever else, but some columns not? [19:50] right, name, owner, size and filedate [19:50] okay, i did sth like this before, gimme some minutes [19:52] argl... this is a rtfm [19:54] did you try awk? [19:54] thankfully this is the last paper i have to work on, and the rest of the commands i can do [19:54] awk not allowed [19:54] uhoh [19:55] what script / language is allowed? [19:55] only bash [19:55] thats not much [19:56] but then gret wouldnt be allowed too? [19:56] gep [19:56] u know [19:57] well, it says that awk and sed not allowed, and i dont think teach would let me to use perl(spit) or python either [20:04] ill read some forum for a moment and then think again --> [20:04] hm [20:04] i have no more ideas [20:05] can you make chown show the owner of a file or sth like that? [20:05] like: ls -1 > chown --showovner [20:06] yay, i got it to work [20:06] *congratz* [20:06] how? [20:07] set .`ls -l $file` [20:08] then ill just echo $file $3 $5 $6 $7 [20:10] by adding the dot then the first argument given by ls is no longer considerable as a commandline -argument to set [20:11] i try to figure out, what this does, but i dont even get the basic idea [20:11] is set in unix something completly different than SET ?? [20:11] yes [20:12] i dont find set in my unix manual and there seems to be no man page... i love linux [20:12] eg. set a b d will set global variables $1=a $2=b $3=d ... $n=x [20:12] okay [20:13] is the above command like substituting ls with a complexer command? [20:14] i give up... allways these mega walls... i need professional unix education [20:15] set `ls -l` will act like set abvs vgdsgf fds fsdf file - the problem is that the first line is usually -rwxrwr (or similiar), and set thinks that line as an argument [20:15] i suppose $1 is the first given command line argument? [20:15] with set .`ls -l` the first line becomes .-rwxrwr which is not argumentlike [20:15] ah [20:15] nice trick [20:16] then set takes each part of the line (space-separated) ls gives, and variables each [20:16] but the rest still confuses me [20:16] i learned most shell things form oreillys "unix in a nutshell" [20:17] but ls -l $file is not a valid command!?!? [20:17] i left the first line of the script not mentioned [20:18] file=$1 set.`ls -l $file` echo $file $3 $5 $6 $7 is the whole thing [20:19] $1 is at first established as the variable i give to the script in commandline [20:19] okay i got it [20:20] thats good to know [20:20] just to be sure: set a b c d e results in $1 =a $2=b aso? [20:21] yes [20:21] thats in fact easy :-) [20:21] it was all about the dot [20:26] maybe you know what it is: when I put some ansi-escape sequences into the prompt variable, the therminal output gets crazy: when i type in more chars than line lenght, then backspace does not make the cursor go back to the original line... but only with esc sequences in the prompt string [20:26] (some different linuxes did this) [20:27] have no idea quite frankly [20:27] nobody seems to know... and i am too lazy to read all the sources of the os *g* in 50 years i may know it *g* thx anyways [21:02] and now to wonder why my loop is a failure [21:02] :) [21:04] there [21:05] and that should be enough to finish my unix-course [21:05] what loop loop loop loop loop loop ... [21:06] final work was to make a program that checks each file in the directory, checks if its textfile, and if so, prints it, and then asks if the file should be deleted [21:08] just a one loop and couple case's [21:45] Join: inversed joined #corewars [21:46] hi inversed [21:46] Mizcu, before I go to sleep I want to say that improving your paper is going well [21:46] yay?! [21:46] Now a bit better against papers and much better against scanners [21:47] Beating rascal 180:100 :) [21:47] improving by hand, evo, or bruteforce? [21:48] By hand. I've changed replication mechanism to timescape-style. [21:48] Part: ares left #corewars [21:48] Join: ares joined #corewars [21:49] (oops) [21:49] hmm. [21:50] Still awfull against oneshots. I'll try adding implauncher. [21:50] not much can be done against oneshots.. [21:51] i did have a type of paper which did surprisingly well against oneshots, but again, it wasnt good enough overall [21:53] and by surprisingly well i mean "did not get butchered horribly" [21:56] it's too late here, bye [21:56] MSG: [22:17] MSG: Quit: Trillian (http://www.ceruleanstudios.com