shuffle arguments around
authorThorsten Glaser <tg@mirbsd.org>
Wed, 9 Mar 2011 14:27:01 +0000 (15:27 +0100)
committerThorsten Glaser <tg@mirbsd.org>
Wed, 9 Mar 2011 14:27:01 +0000 (15:27 +0100)
commitfae019371897347f23d5a07a4bf1121e144db113
tree49347caffc0930b3ecb2d63860ad3459734885ae
parenta126a6986647d44236202a174e7d265f0fd390e0
shuffle arguments around

usage: mksh shuffle arg1a arg1b … -- arg2a arg2b … [-- arg3a arg3b …]
will run: arg1a arg1b arg2b arg2a arg3a arg3b
i.e. shuffle arg2 but leave arg1 and arg3 alone

examples:
mksh shuffle mplayer -- *.flac
mksh shuffle mppdec-static -- *.mpc -- /dev/dsp
mksh/shuffle [new file with mode: 0644]