On Tue, Mar 13, 2001 at 08:24:33PM -0600, Jason DeStefano wrote: > How about 2 lines? Two lines is far too many, not to mention you have to compile and run your executable, plus you need to recompile if you ever want to change your shif?t. How about a Perl command-line script that does arbitrary right- and left-shifts? % perl -pe 's/(\d+) (-?\d+)/($2>0)?$1<<$2:$1>>-$2/e' 10 1 20 10 -1 5 Yeahhh. You be wastin' disk space wit yo jiveass object files.