
Here is the haskell-version: main: do x <- readFile "file.txt"; //replace by actual filename :) x <- take(length x, drop n) s //replace n by length putStr x Then redirect output to a new file. Kenny Billiau wrote:
I want a punch card for a PDP 7!
http://en.wikipedia.org/wiki/PDP-7
On Fri, 18 Jul 2008, Elisabeth Wischnitzki wrote:
No, but you can have it in python or sml...
Sofie Van Landeghem wrote:
cobol, anyone?
Michiel Van Bel wrote:
Now, in x86 assembly:
... nevermind :)
Sebastian Proost wrote: in perl > while(<STDIN>) { my $out = substring $_,n; #repalce n by actual number print $out; } > or something like that > > > Ward Blondé wrote: > > > > > > I have no problems with VI, but I don't understand the answer: the > > > number n doesn't occur in it!? > > > Ward > > > > > > Sofie Van Landeghem wrote: > Oh, gaan we in VI beginnen, ik doe alles in java hoor :p > > > > > Kenny Billiau wrote: > > In VI you can do: > > > > > > > <esc>gg<ctrl+v>Gd > > > > > > > > > > > > the sequences between <> are key you have to press .. :) > > > > > > > On Fri, 18 Jul 2008, Ward Blondé wrote: > > > > > > > > > > > > > > > > > > > > Hoi Binaries, > > > > > > > > > Does anyone know a nice method to strip the first n characters > > > > > > away from every line in a file? > > > > > > > > > Ward >>> _______________________________________________ > > > Binari Is Not A Regular Island > > > Binari@psb.ugent.be > > > https://maillist.psb.ugent.be/mailman/listinfo/binari > > > > > > > > > > > > > > > > > > >
> > > > > > > >> _______________________________________________ > > Binari Is Not A Regular Island > > Binari@psb.ugent.be > > https://maillist.psb.ugent.be/mailman/listinfo/binari > > > > > > > > > > > > > > > > > >
------------------------------------------------------------------------
_______________________________________________ Binari Is Not A Regular Island Binari@psb.ugent.be https://maillist.psb.ugent.be/mailman/listinfo/binari
-- ================================================================== Michiel Van Bel PhD student Tel:+32 (0)9 331 36 95 fax:+32 (0)9 3313809 VIB Department of Plant Systems Biology, Ghent University Technologiepark 927, 9052 Gent, BELGIUM mibel@psb.ugent.be http://www.psb.ugent.be ==================================================================