In fact, you can make it shorter on most systems  by saying

head -28 chopin_rulez.pmx > ...

(got a funny feeling that POSIX deprecated the -[number] syntax as it's
weird to have a command with a near-infinite number of switches but there
were too many scripts and admins who/which didn't bother with -n so it's
still there)

Also available under Windows if you download coreutils from
http://gnuwin32.sourceforge.net


David

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]
> On Behalf Of Jill-Jênn VIE
> Sent: 05 April 2009 13:04
> To: Werner Icking Music Archive
> Subject: [TeX-Music] Magical command
> 
> Hi all :) Hope you're all fine,
> 
> It was just to share one command (under Mac OS X and Linux, I bet):
> 
> head -n 28 chopin_rulez.pmx > tmp.pmx && pmxab tmp.pmx
> 
> It copies the first 28 lignes (for example) of chopin_rulez.pmx into
> tmp.pmx, then executes pmxab on tmp.pmx.
> Very handy if you want to compile your PMX file until a certain line
> (to know why you have this f****** segmentation fault ;)).
> 
> I hope you don't have already a file tmp.pmx in your directory xD else
> it will be crushed by this command ^^'
> 
> See you!
> 
> --
> Jill-Jênn
> http://mickay.jill.free.fr/score/
> 
> 
> _______________________________________________
> [email protected] mailing list
> If you want to unsubscribe or look at the archives, go to
> http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-
> tex-music


_______________________________________________
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music

Reply via email to