![]() |
|
Simple challenge - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Coding (https://sinister.ly/Forum-Coding--71) +--- Thread: Simple challenge (/Thread-Simple-challenge) |
RE: Simple challenge - Oni - 09-13-2013 (09-13-2013, 02:47 AM)w00t Wrote: That was actually the first one I used, but then he said it was cheating.
RE: Simple challenge - Cyanide and Cynicism - 09-13-2013 Does anyone want to make an attempt at it? By the way w00t, your code doesn't work. Forgot to mention it in my last post. RE: Simple challenge - Dong - 09-14-2013 Just clarifying, but are you just looking for an alternative command or must we design a function that will perform the same operation as the commands listed? RE: Simple challenge - Cyanide and Cynicism - 09-14-2013 Seriously, this is simple shit. Can anyone do it? (09-14-2013, 12:54 AM)Aristotle Wrote: Just clarifying, but are you just looking for an alternative command or must we design a function that will perform the same operation as the commands listed? Anything that doesn't directly use cat is fine, Oni's example allowed him to use it without directly using the name which is fine. Although, using a completely different function is best. RE: Simple challenge - Cyanide and Cynicism - 09-21-2013 CAN ANYONE ACTUALLY DO THIS? RE: Simple challenge - w00t - 09-21-2013 Code: tail -n `wc -l file.txt` file.txtRE: Simple challenge - Cyanide and Cynicism - 09-22-2013 ok w00t fokin kunt Quote:tac /directory/of/file > /directory/of/output && tac /directory/of/output lol beat me. RE: Simple challenge - w00t - 09-22-2013 Code: echo "#include <stdio.h> int main() {FILE *fh;fh=fopen("file.txt","r");fseek(fp,0,SEEK_END); int sz = ftell(fp);fseek(fp,0,SEEK_SET);while(c=getc(fh) != EOF){putchar(c)}return 0;}" > main.c && gcc main.c && ./a.outIf that actually runs I'll be amazed, can't check currently. EDIT: Forgot to return + final } RE: Simple challenge - Cyanide and Cynicism - 09-22-2013 (09-22-2013, 01:49 AM)w00t Wrote: If that actually runs I'll be amazed, can't check currently. Doesn't compile, at least for me. RE: Simple challenge - Purphexyon - 09-22-2013 This kinda stuff reminds me how dumb I am *@.@* |